Build and install snac

Set up environment

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

Get source

> cd $BUILD_DIR
> wget http://www.geodynamics.org/cig/software/snac/SNAC-1.2.0.tar.gz

Prepare build

> tar xvfz SNAC-1.2.0.tar.gz
> cd SNAC-1.2.0

Configure

> ./configure.sh --prefix=$SNAC_ROOT

Compile and install

Note: Parallel make doesn’t appear to work.

> make