CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Missing include in surfaceInterpolate

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2015, 04:26
Default Missing include in surfaceInterpolate
  #1
Member
 
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 68
Rep Power: 16
David* is on a distinguished road
Hi,

I tried to compile some selected OpenFOAM classes I need for a project. When surfaceInterpolate.H was included, I ran into:
Code:
.../finiteVolume/lnInclude/surfaceInterpolate.H(176): error: FieldField is not a template
      static tmp<FieldField<fvsPatchField, Type> > interpolate
                 ^
When I #include "FieldField.H" in surfaceInterpolate.H, compilation is successful. I new to C++ Programming, so can someone confirm that the include is simply missing and the only reason no one noticed so far is that during "normal" compilation, "FieldField.H" is included somewhere else?

Edit: The error is not present when using wmake, just with icpc. Probably I'm missing to mirror an important feature of wmake in icpc?

Cheers,
David
David* is offline   Reply With Quote

Old   October 13, 2015, 05:12
Default
  #2
Member
 
David GISEN
Join Date: Jul 2009
Location: Germany
Posts: 68
Rep Power: 16
David* is on a distinguished road
... I missed to #include "volFields.H".
Remaining question: Why does this affect icpc, but not wmake?

Cheers,
David
David* is offline   Reply With Quote

Old   October 17, 2015, 15:25
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: wmake uses its own rule management mechanism for building OpenFOAM.
If you are using icpc directly, instead of relying on wmake and the environment variable "WM_COMPILER", then it's natural that you forgot to include one or more folders to the header search list.
David* likes this.
wyldckat 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
cyclic boundary conditions for FSI kanuk OpenFOAM Programming & Development 10 April 25, 2014 02:52
OpenFoam install script Error during paraFoam installation SePe OpenFOAM Installation 10 June 19, 2010 15:15
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03:01
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
OpenFOAM15 paraFoam bug koen OpenFOAM Bugs 19 June 30, 2009 10:46


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