#!/bin/bash # # This file is a template for executing configure.sh # multiple times to build TOUGH3 with various (e.g., all) EOS modules, # from the list # 1 2 3 4 5 7 7c 7ca 7r 8 9 tmvoc ewasg eco2n eco2n_v2 eco2m . # e.g., as ; # compile_T3_UbuntuTerminal.sh 1 3 tmvoc # # Executed with no argument it prints an example useage. # It may need editting to have correct pathnames for your system. if [ "$#" -eq 0 ]; then # When called with no argument print usage message; echo "Usage: compile_T3_UbuntuTerminal.sh 1 2 3 4 5 7 7c 7ca 7r 8 9 tmvoc ewasg eco2n eco2n_v2 eco2m" echo " may be called with any or all of the above arguments." else for eos in $@ # for each argument (eos number); do # This example is for Linux running in UbuntuTerminal under Windows 10; ./configure.sh \ --no-x11 \ --build-type=RELEASE \ --eos=$eos \ --use-mpi=0 \ # --with-mpiexec \ --implicit-blaslapack \ --with-cxx-compiler=g++ \ --with-c-compiler=gcc \ --with-fort-compiler=gfortran # --prefix=$HOME/tough3-serial echo "done with $eos" done fi # (end if) # Miscellaneous options in reserve; # # --build-type=RELEASE \ # --build-type=DEBUG \ # # Build with Serial Only # --use-mpi=0 \ # --prefix=$HOME/tough3-serial # --with-cxx-compiler=g++ # --with-c-compiler=gcc # --with-fort-compiler=gfortran # # Build with Intel compiler and Intel MKL # --with-mkl=$PATH_TO_MKL_LIB