MODEL_PREFIX is the base path for all model installations. This should be set in the user’s environment.
BUILD_DIR is the path to the folder under which everything will be built. This should be set in the user’s environment. If not set, the root build directory will be the user’s home directory.
> SNAC_VERSION=1.2.0
> SNAC_ROOT=$MODEL_PREFIX/snac/$SNAC_VERSION
> source /usr/local/modules/init/bash
> module load subversion
> module load cca/mvapich2
> module load libxml2
> module load gsl
> export CC=mpicc
> export CXX=mpicxx
> export MPI_DIR=$MPI_ROOT
> export MPI_INCDIR=$MPI_ROOT/include
> export MPI_RUN_COMMAND=mpirun_rsh
> export GSL_DIR=$GSLROOT
> cd $BUILD_DIR
> wget http://www.geodynamics.org/cig/software/snac/SNAC-1.2.0.tar.gz
> tar xvfz SNAC-1.2.0.tar.gz
> cd SNAC-1.2.0
> ./configure.sh --prefix=$SNAC_ROOT
Note: Parallel make doesn’t appear to work.
> make