CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Problems while wmake

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 24, 2005, 04:50
Default Hi, everyone. I'm trying to w
  #1
Member
 
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17
evgenii is on a distinguished road
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.
evgenii is offline   Reply With Quote

Old   November 24, 2005, 07:14
Default Go to: /usr/local/lib/OpenF
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   November 24, 2005, 07:32
Default Thank you, for reply, I'll try
  #3
Member
 
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17
evgenii is on a distinguished road
Thank you, for reply, I'll try it now.
Is this a source code error?
evgenii is offline   Reply With Quote

Old   November 24, 2005, 09:24
Default 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
evgenii is on a distinguished road
thank you a lot. It's now working!
evgenii is offline   Reply With Quote

Reply


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
Wmake as User sven82 OpenFOAM Installation 3 August 14, 2013 03:23
Problems with wmake ivan_cozza OpenFOAM Programming & Development 14 June 30, 2013 07:34
Wmake error murasaki OpenFOAM 6 August 9, 2010 14:03
Wmake problem thumthae OpenFOAM Installation 12 December 3, 2008 09:30
Anyone using distcc with wmake kar OpenFOAM 2 March 14, 2008 05:13


All times are GMT -4. The time now is 02:36.