CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Problems while wmake (http://www.cfd-online.com/Forums/openfoam-pre-processing/62244-problems-while-wmake.html)

evgenii November 24, 2005 05:50

Hi, everyone. I'm trying to w
 
Hi, everyone.
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_DIR=.
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.

Eugene.

hjasak November 24, 2005 08:14

Go to: /usr/local/lib/OpenF
 
Go to:

/usr/local/lib/OpenFOAM/OpenFOAM-1.1/src/OpenFOAM/lnInclude/fvPatchField.C

line 337 and change it to say:

if (m.resizeOnly())
{
this->setSize(m.size());
}

Hrv

evgenii November 24, 2005 08:32

Thank you, for reply, I'll try
 
Thank you, for reply, I'll try it now.
Is this a source code error?

evgenii November 24, 2005 10:24

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 08:20.