compile a solver
Hi guys
I'm using O.F. is 2.3.1 and have done changes according to http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam But I've gotten this error: make: *** [Make/linux64GccDPOpt/icoHeatFoam.o] Error 1 Help me, if you know the solution. Thanks |
Quote:
please post the error description completely (what you see in the terminal). Regards, Mostafa |
Thanks Mostafa.
These are all of the messages which are printed in terminal: SOURCE=icoHeatFoam.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude -I/home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/sampling/lnInclude -IlnInclude -I. -I/home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude -I/home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/icoHeatFoam.o In file included from icoHeatFoam.C:42:0: createFields.H: In function ‘int main(int, char**)’: createFields.H:73:1: error: expected ‘)’ before ‘D0’ D0 ^ In file included from icoHeatFoam.C:53:0: /home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable] const int nOuterCorr = ^ /home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude/readPISOControls.H:12:16: warning: unused variable ‘momentumPredictor’ [-Wunused-variable] const bool momentumPredictor = ^ /home/drnili/OpenFOAM/OpenFOAM-2.3.1/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable] const bool transonic = ^ make: *** [Make/linux64GccDPOpt/icoHeatFoam.o] Error 1 |
Quote:
you forgot to close the parentheses before the D0. |
volScalarField D
( IOobject ( "D", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, D0 ); I think I've forgotten a "," after mesh. isn't it? But how can I be confident that my solver works correctly? |
All times are GMT -4. The time now is 06:06. |