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

From OpenFOAMWiki
m
 
Line 1: Line 1:
 
 
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 <tt>cfdtools</tt> (implicitly saying that when someone says ''CFD'' he means ''finite Volume'') was moved to <tt>finiteVolume</tt>.
 
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 <tt>cfdtools</tt> (implicitly saying that when someone says ''CFD'' he means ''finite Volume'') was moved to <tt>finiteVolume</tt>.
  
Line 9: Line 8:
 
with lines like
 
with lines like
 
  -I$(LIB_SRC)/finiteVolume/lnInclude
 
  -I$(LIB_SRC)/finiteVolume/lnInclude
and replacefor the link command the lines like
+
and replace for the link command the lines like
 
  -lcfdTools
 
  -lcfdTools
 
with  
 
with  
 
  -lfiniteVolume
 
  -lfiniteVolume

Revision as of 23:29, 22 May 2006

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