Build and install GIPL

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.

> GIPL_VERSION=nightly
> GIPL_ROOT=$MODEL_PREFIX/gipl/$GIPL_VERSION

> source /usr/local/modules/init/bash
> module load subversion
> module load cmake
> module load cca/mvapich2

Get source

> cd $BUILD_DIR
> svn co https://csdms.colorado.edu/svn/gipl/trunk gipl-$GIPL_VERSION

Prepare build

> mkdir -p gipl-$GIPL_VERSION/src/_build
> cd gipl-$GIPL_VERSION/src/_build

Configure

> cmake .. -DCMAKE_INSTALL_PREFIX=$GIPL_ROOT

Compile

> make

Install

> make install