|
[Sponsors] |
November 24, 2005, 05:50 |
Hi, everyone.
I'm trying to w
|
#1 |
Member
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17 |
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. |
|
November 24, 2005, 08:14 |
Go to:
/usr/local/lib/OpenF
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
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
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
November 24, 2005, 08:32 |
Thank you, for reply, I'll try
|
#3 |
Member
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17 |
Thank you, for reply, I'll try it now.
Is this a source code error? |
|
November 24, 2005, 10:24 |
thank you a lot. It's now work
|
#4 |
Member
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17 |
thank you a lot. It's now working!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wmake as User | sven82 | OpenFOAM Installation | 3 | August 14, 2013 04:23 |
Problems with wmake | ivan_cozza | OpenFOAM Programming & Development | 14 | June 30, 2013 08:34 |
Wmake error | murasaki | OpenFOAM | 6 | August 9, 2010 15:03 |
Wmake problem | thumthae | OpenFOAM Installation | 12 | December 3, 2008 10:30 |
Anyone using distcc with wmake | kar | OpenFOAM | 2 | March 14, 2008 06:13 |