Hi, everyone. I'm trying to w
I'm trying to write my own solver. To have some example I copy (as it was described in the guides) solvers to my folder, correct paths and files. But when I run wmake following message appears:
Making dependency list for source file icoFoam_my.C
SOURCE=icoFoam_my.C ; g++ -m64 -DlinuxAMD64 -Wall -W -Wno-unused-parameter -march=opteron -O3 -ffast-math -fno-gcse -DNoRepository -ftemplate-depth-30 -I/usr/local/lib/OpenFOAM/OpenFOAM-1.1/src/OpenFOAM/lnInclude -IlnInclude -I. -I/usr/local/lib/OpenFOAM/OpenFOAM-1.1/src/cfdTools/incompressible -I/usr/local/lib/OpenFOAM/OpenFOAM-1.1/src/cfdTools/lnInclude -fPIC -c $SOURCE -o Make/linuxAMD64Opt/icoFoam_my.o
/usr/local/lib/OpenFOAM/OpenFOAM-1.1/src/OpenFOAM/lnInclude/fvPatchField.C: In member function 'virtual void Foam::fvPatchField<type>::autoMap(const Foam::fvPatchFieldMapper&)':
/usr/local/lib/OpenFOAM/OpenFOAM-1.1/src/OpenFOAM/lnInclude/fvPatchField.C:337: error: there are no arguments to 'setSize' that depend on a template parameter, so a declaration of 'setSize' must be available
/usr/local/lib/OpenFOAM/OpenFOAM-1.1/src/OpenFOAM/lnInclude/fvPatchField.C:337: error: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
make: *** [Make/linuxAMD64Opt/icoFoam_my.o] error 1
I don't know what I need to correct and where. Hope to get some help.
Go to: /usr/local/lib/OpenF
line 337 and change it to say:
Thank you, for reply, I'll try
Thank you, for reply, I'll try it now.
Is this a source code error?
thank you a lot. It's now work
thank you a lot. It's now working!
|All times are GMT -4. The time now is 01:51.|