CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   error while doing 'wmake' (https://www.cfd-online.com/Forums/openfoam-programming-development/148757-error-while-doing-wmake.html)

jishnuhari25 February 18, 2015 23:37

error while doing 'wmake'
 
Foamers,
I am doing a work based on twoPhaseEulerFoam. I am investigating the solver now. For running the solver I have done 'wmake' on the solver. But I found the following error while doing that. Please help. Thanks in advance.


Making dependency list for source file twoPhaseEulerFoam.C
SOURCE=twoPhaseEulerFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/transportModels/incompressible/lnInclude -IturbulenceModel -IkineticTheoryModels/lnInclude -IinterfacialModels/lnInclude -IphaseModel/lnInclude -Iaveraging -IlnInclude -I. -I/home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/twoPhaseEulerFoam.o
In file included from twoPhaseEulerFoam.C:50:0:
wallEvap.H:2:31: error: ‘mesh’ was not declared in this scope
const fvPatchList& patches = mesh.boundary();
^
In file included from /home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/List.H:43:0,
from /home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/labelList.H:48,
from /home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/UPstream.H:43,
from /home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/Pstream.H:42,
from /home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/parRun.H:35,
from /home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude/fvCFD.H:4,
from twoPhaseEulerFoam.C:33:
/home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/UList.H:395:5: error: expected unqualified-id before ‘for’
for (Foam::label i=0; i<(list).size(); i++)
^
wallEvap.H:3:2: note: in expansion of macro ‘forAll’
forAll(patches, patchi)
^
wallEvap.H:3:18: error: ‘patchi’ does not name a type
forAll(patches, patchi)
^
/home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/UList.H:395:27: note: in definition of macro ‘forAll’
for (Foam::label i=0; i<(list).size(); i++)
^
wallEvap.H:3:18: error: ‘patchi’ does not name a type
forAll(patches, patchi)
^
/home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude/UList.H:395:44: note: in definition of macro ‘forAll’
for (Foam::label i=0; i<(list).size(); i++)
^
In file included from twoPhaseEulerFoam.C:50:0:
wallEvap.H:67:25: error: ‘mEvap’ was not declared in this scope
volScalarField mTotal = mEvap - mCondsn;
^
wallEvap.H:67:33: error: ‘mCondsn’ was not declared in this scope
volScalarField mTotal = mEvap - mCondsn;
^
In file included from twoPhaseEulerFoam.C:65:0:
/home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude/readTimeControls.H: In function ‘int main(int, char**)’:
/home/p2tf13007/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
scalar maxDeltaT =
^
make: *** [Make/linux64GccDPOpt/twoPhaseEulerFoam.o] Error 1

alexeym February 19, 2015 02:22

Hi,

Main reason for the errors is

Code:

wallEvap.H:2:31: error: ‘mesh’ was not declared in this scope
As it is your own modification that you keep in secret, not much can be said except that "compiler is right, there's not mesh defined at line 50, i.e. outside main function".


All times are GMT -4. The time now is 21:09.