forked from Cantera/cantera
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
08c5ea7
commit a448e02
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /bin/bash | ||
# Need to build SUNDIALS with -fPIC and set(CMAKE_MACOSX_RPATH 1) | ||
export CANTERA_DIR=~/local/cantera/2.4.0/ | ||
export SUN_INCLUDE=~/local/sundials/2.7.0/include | ||
export SUN_LIB=~/local/sundials/2.7.0/lib | ||
export BOOST_INCLUDE=~/local/boost/1.55.0/build/include | ||
export EIGEN_INCLUDE=~/local/eigen/3.2.9 | ||
|
||
scons -j24 build prefix=$CANTERA_DIR \ | ||
CXX=g++ CC=gcc FORTRAN=gfortran python_package=none \ | ||
optimize_flags='-O3' \ | ||
env_vars='all' \ | ||
sundials_include=$SUN_INCLUDE sundials_libdir=$SUN_LIB \ | ||
boost_inc_dir=$BOOST_INCLUDE f90_interface=y system_eigen=y \ | ||
extra_inc_dirs=$EIGEN_INCLUDE | ||
if [ -z "SCONS_TEST" ]; then | ||
scons -j24 test | ||
fi | ||
scons -j24 install |