TSMP2 workflow engine for running simulations. The following examples and descriptions are based on a coupled climate simulation case over the EUR-11 domain, but the underlying idea applies to all types of simulations, such as LES, NWP, real and idealised cases. The workflow is applicable for any model combination within the TSMP2 framework realm.
cd $PROJECT_DIR
git clone --recurse-submodules https://github.com/HPSCTerrSys/TSMP2_workflow-engine
wfe_dir=realpath tsmp2_workflow-engine
The TSMP2 ( https://github.com/HPSCTerrSys/TSMP2 ) should be either already compiled (see ReadMe TSMP2) or compiled with the following steps.
- change directory
cd ${wfe_dir}/src/TSMP2
- compile the code
# TSMP2
./build_tsmp2.sh --icon --eclm --parflow
Create and softlink run-directory on SCRATCH
export SCRATCH_DIR=/p/scratch/YOUR_PROJECT/$USER/$sim_id
mkdir -pv $SCRATCH_DIR
ln -s $SCRATCH_DIR/run run
Adapt ressources and time in the setup-script.
cd ctl
vi control_tsmp2.sh
Activate a compute project
# Replace PROJECTNAME with your compute project
jutil env activate -p PROJECTNAME
# Check if $BUDGET_ACCOUNTS was set.
echo $BUDGET_ACCOUNTS
Start simulation
sh control_tsmp2.sh
Stefan Poll ([email protected])