OpenFOAM-v3.0+ installation in CentOS 6 using Intel compilers
This post is to show how to compile OpenFOAM-v3.0+ from openfoam.com using Intel compilers in CentOS 6. Most procedures are similar to source-pack compilation of OF using Gcc in Ubuntu (especially 16).
Key procedures include
1. Untar both ThirdParty-v3.0+.tgz and OpenFOAM-v3.0+.tgz.
2. Change the compiler from the default Gcc to Icc in OpenFOAM-v3.0+/etc/bashrc.
3. Set the OF environment
4. Open ~/OpenFOAM/OpenFOAM-v3.0+/etc/config/CGAL.sh file, and change lines to
5. Go to the third party directory
6. Check whether the "boost_1_61_0/lib" exist like
If it is not present, make it from ThirdParty-v3.0+/
7. Link the system boost_thread library
8. Go to the OF directory
and compile OF
Key procedures include
1. Untar both ThirdParty-v3.0+.tgz and OpenFOAM-v3.0+.tgz.
2. Change the compiler from the default Gcc to Icc in OpenFOAM-v3.0+/etc/bashrc.
3. Set the OF environment
Code:
source etc/bashrc
Code:
cgal_version=CGAL-4.8 boost_version=boost_1_61_0
Code:
cd ../ThirdParty-v3.0+ ./Allwmake ./makeParaView
Code:
ThirdParty-v3.0+/platforms/linux64Icc/boost_1_61_0/lib
Code:
cd platforms/linux64Icc mkdir boost_1_61_0 mkdir lib cd boost_1_61_0/lib
Code:
ln -s /usr/lib64/libboost_thread-mt.so libboost_thread.so ln -s /usr/lib64/libboost_thread-mt.so libboost_thread.a
Code:
cd ../OpenFOAM-v3.0+
Code:
./AllWmake
Total Comments 0