Build and install sedflux

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.

> SEDFLUX_VERSION=devel
> SEDFLUX_ROOT=$MODEL_PREFIX/sedflux/$SEDFLUX_VERSION

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

Get source

> cd $BUILD_DIR
> svn co https://csdms.colorado.edu/svn/sedflux/sedflux/tags/2.1 sedflux-$SEDFLUX_VERSION

Prepare build

> mkdir -p sedflux-$SEDFLUX_VERSION/_build
> cd sedflux-$SEDFLUX_VERSION/_build

Configure

> cmake .. -DCMAKE_INSTALL_PREFIX=$SEDFLUX_ROOT

Compile

> make

Install

> make install