Build and install the CCA sedflux project

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.

> CCA_SEDFLUX_VERSION=0.1
> CCA_SEDFLUX_ROOT=$MODEL_PREFIX/sedflux/$CCA_SEDFLUX_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/components/trunk sedflux-$CCA_SEDFLUX_VERSION

Prepare build

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

Configure

> cmake .. -DMODULE_NAME=cmt-sedflux
> make sedflux

Configure and compile your bocca project

> cd csdms 
> ./configure --prefix=$CCA_SEDFLUX_ROOT
> make

Add record to CMT project list file

> echo [cmt.project.sedflux] > cmt_sedflux.cfg
> echo display_name = Sedflux >> cmt_sedflux.cfg
> echo project_path = $BUILD_DIR/sedflux-$CCA_SEDFLUX_VERSION/_build/csdms >> cmt_sedflux.cfg
> echo group = Marine >> cmt_sedflux.cfg
> echo help_url = Not Set >> cmt_sedflux.cfg

> mv cmt_sedflux.cfg $TOOL_PREFIX/cmt/devel/etc/