This is the main repository for IOW earth-system model project. Here you will find scripts to build, prepare and run the model. The components of this coupled model will have their own repositiories. https://sven-karsten.github.io/iow_esm/intro.html
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

42 lines
1.1 KiB

#!/bin/bash
target=$1
debug=${2:-"release"}
fast=${3:-"fast"}
set -e
# location of this script
local="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
origins=(`awk '{print $1}' ${local}/ORIGINS`)
echo "###############################################"
echo "## ##"
echo "## IOW earth-system model ##"
echo "## ##"
echo "###############################################"
echo ""
echo "###############################################"
echo "## Building origins ##"
echo "###############################################"
echo ""
for c in "${origins[@]}"; do
if [ -f "${local}/${c}/build.sh" ]; then
echo "## Build: $c"
echo "###############################################"
echo ""
cd "${local}/$c"
./build.sh "$target" "$debug" "$fast"
cd -
echo ""
echo ""
fi
done
echo ""
echo "###############################################"
echo "## Building done ##"
echo "###############################################"
echo ""