Difference between revisions of "OpenFOAM"

From UFRC
Jump to navigation Jump to search
Line 9: Line 9:
 
Undefined references to pthread routines required the following change to the wmake rules...
 
Undefined references to pthread routines required the following change to the wmake rules...
  
<src>
+
<pre>
 
--- wmake/rules/linux64Gcc/general.orig 2011-02-11 12:00:54.000000000 -0500
 
--- wmake/rules/linux64Gcc/general.orig 2011-02-11 12:00:54.000000000 -0500
 
+++ wmake/rules/linux64Gcc/general 2011-02-11 11:45:49.000000000 -0500
 
+++ wmake/rules/linux64Gcc/general 2011-02-11 11:45:49.000000000 -0500
Line 20: Line 20:
 
   
 
   
 
  include $(GENERAL_RULES)/standard
 
  include $(GENERAL_RULES)/standard
</src>
+
</pre>

Revision as of 17:07, 11 February 2011

OpenFoam

Version 1.7.1

Needs to be built with gcc 4.4.4 or newer. Gcc 4.4.4, in turn, requires a bunch of stuff so we have the following (in the order in which they should be built).


Undefined references to pthread routines required the following change to the wmake rules...

--- wmake/rules/linux64Gcc/general.orig	2011-02-11 12:00:54.000000000 -0500
+++ wmake/rules/linux64Gcc/general	2011-02-11 11:45:49.000000000 -0500
@@ -1,7 +1,7 @@
 CPP        = cpp -traditional-cpp $(GFLAGS)
 LD         = ld
 
-PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl
+PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl -lpthread
 
 include $(GENERAL_RULES)/standard