Build TauDEM

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.

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

> TAUDEM_VERSION=5.1
> TAUDEM_ROOT=$MODEL_PREFIX/taudem/$TAUDEM_VERSION

Fetch the source

> cd $BUILD_DIR
> wget http://csdms.colorado.edu/pub/users/huttone/taudem-5.1.tar.gz

Unpack the source

> tar xvfz taudem-5.1.tar.gz

Configure and make

> cd taudem-5.1
> mkdir -p _build && cd _build
> CXX=mpicxx cmake .. -DCMAKE_INSTALL_PREFIX=$TAUDEM_ROOT
> make -j8

Install

> make install