CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

error while doing 'wmake'

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2015, 23:37
Default error while doing 'wmake'
  #1
New Member
 
JISHNU H
Join Date: Nov 2014
Location: Kerala, India
Posts: 20
Rep Power: 11
jishnuhari25 is on a distinguished road
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
jishnuhari25 is offline   Reply With Quote

Old   February 19, 2015, 02:22
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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".
alexeym is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41
Problem of compilation OF 14Allwmake command not found erik_d OpenFOAM Bugs 13 September 13, 2008 21:45
[OpenFOAM] ParaFoam error message joey ParaView 1 October 2, 2006 13:28


All times are GMT -4. The time now is 12:55.