Difference between revisions of "HowTo port from older versions to 13"

From OpenFOAMWiki
 
Line 12: Line 12:
 
with  
 
with  
 
  -lfiniteVolume
 
  -lfiniteVolume
 +
 +
[[Category:Tutorials]]

Latest revision as of 13:14, 21 October 2013

In Version 1.3 of OpenFOAM some reorganisations of the source code took place. One that is most commonly encountered when a utility is converted from an older version is that stuff that was under the topic cfdtools (implicitly saying that when someone says CFD he means finite Volume) was moved to finiteVolume.

So if such a utility is compiled with wmake a number of error messages is encountered, the first usually being

could not open file fvCFD.H for source myVeryPersonalUtility.C

This can be fixed, by going to the source directory of the utility you wish to compile (if you did the wmake you're usually already there) and open the file Make/options. There replace the lines for EXE_INC that are similar to

-I$(LIB_SRC)/cfdTools/lnInclude

with lines like

-I$(LIB_SRC)/finiteVolume/lnInclude

and replace for the link command the lines like

-lcfdTools

with

-lfiniteVolume