Advertisement
lerakaneva

build.sh

May 2nd, 2024
624
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.89 KB | None | 0 0
  1. #!/bin/bash
  2. [ -d build ] || mkdir build
  3. cd build
  4.  
  5. source ~/OF-5.0_bashrc
  6. export CC=/opt/software/OpenFoam-5.0/ThirdParty-5.0/platforms/linux64/gcc-4.9.4/bin/gcc
  7. export CXX=/opt/software/OpenFoam-5.0/ThirdParty-5.0/platforms/linux64/gcc-4.9.4/bin/g++
  8. # using newer compiler requires rebuilding boost, gmsh (not sure about OpenFOAM) due to ABI changes
  9. #export CC=/opt/software/gcc-5.5/bin/gcc
  10. #export CXX=/opt/software/gcc-5.5/bin/g++
  11. export GMSH_PREFIX=/home/petertrifanov_1907/gmsh
  12. export BLAS_LIB=/home/petertrifanov_1907/lib/libblas.so.3
  13. export LAPACK_LIB=/home/petertrifanov_1907/lib/liblapack.so.3
  14. cmake -DCMAKE_BUILD_TYPE=Debug -DBOOST_ROOT:PATHNAME=/home/petertrifanov_1907/boost_1_62_0 \
  15.     -DBoost_LIBRARIES:FILEPATH=/home/petertrifanov_1907/boost_1_62_0/stage/lib \
  16.     -DGMSH_PREFIX=$GMSH_PREFIX -DBLAS_LIB=$BLAS_LIB -DLAPACK_LIB=$LAPACK_LIB ..
  17.  
  18. cd build
  19. make -j3
  20. mv trombo ../..
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement