Build and install the CCA topoflow project

Set up environment

MODEL_PREFIX is the base path for all model installations. This should be set in the user’s environment.

> CCA_TOPOFLOW_VERSION=test
> CCA_TOPOFLOW_ROOT=$MODEL_PREFIX/topoflow/$CCA_TOPOFLOW_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 topoflow-$CCA_TOPOFLOW_VERSION

Prepare build

> mkdir -p topoflow-$CCA_TOPOFLOW_VERSION/_build
> cd topoflow-$CCA_TOPOFLOW_VERSION/_build

Configure

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

Configure and compile your bocca project

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