Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- [ -d build ] || mkdir build
- cd build
- source ~/OF-5.0_bashrc
- export CC=/opt/software/OpenFoam-5.0/ThirdParty-5.0/platforms/linux64/gcc-4.9.4/bin/gcc
- export CXX=/opt/software/OpenFoam-5.0/ThirdParty-5.0/platforms/linux64/gcc-4.9.4/bin/g++
- # using newer compiler requires rebuilding boost, gmsh (not sure about OpenFOAM) due to ABI changes
- #export CC=/opt/software/gcc-5.5/bin/gcc
- #export CXX=/opt/software/gcc-5.5/bin/g++
- export GMSH_PREFIX=/home/petertrifanov_1907/gmsh
- export BLAS_LIB=/home/petertrifanov_1907/lib/libblas.so.3
- export LAPACK_LIB=/home/petertrifanov_1907/lib/liblapack.so.3
- cmake -DCMAKE_BUILD_TYPE=Debug -DBOOST_ROOT:PATHNAME=/home/petertrifanov_1907/boost_1_62_0 \
- -DBoost_LIBRARIES:FILEPATH=/home/petertrifanov_1907/boost_1_62_0/stage/lib \
- -DGMSH_PREFIX=$GMSH_PREFIX -DBLAS_LIB=$BLAS_LIB -DLAPACK_LIB=$LAPACK_LIB ..
- cd build
- make -j3
- mv trombo ../..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement