Skip to content

How to build `dgswemv2`

bremerm31 edited this page Aug 7, 2017 · 2 revisions

Building dgswemv2

Summary

This page aims to discuss the needed steps to build the application.

Instructions

Currently, the only needed dependency is yaml-cpp. To make the build process supercomputer friendly. We have provided build scripts which will install the dependencies in a given directory. This will be passed to cmake.

To begin select a work directory. On the TACC machines we recommend using $WORK, and clone yaml-cpp there.

cd $WORK
git clone https://github.com/jbeder/yaml-cpp.git

Next, clone the dgswemv2 to the same location

git clone [email protected]:UT-CHG/dgswemv2.git

Now we install yaml-cpp

cd dgswemv2/scripts/build

The installation configuration is set in config.txt. The dependencies will be built in BUILD_PATH and installed in INSTALL_PATH. By default config.txt will be selected. To install yaml-cpp run

./build-yaml-cpp.sh

To use a custom config file, it is also possible to run ./build-yaml-cpp.sh -c custom_config.txt. Now we can build dgswemv2. Also make sure, if you're using modules that you have the correct gcc and cmake module loaded.

cd $WORK/dgswemv2
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$WORK/dgswemv2_local_install_Release ..
Clone this wiki locally