|
1 | 1 | # TSMP2 workflow-engine |
2 | 2 |
|
3 | | -## Introduction |
4 | | - |
5 | | -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. |
6 | | - |
7 | | -## Setup the workflow |
8 | | - |
9 | | -Activate a compute project |
10 | | -```bash |
11 | | -# Replace PROJECTNAME with your compute project |
12 | | -jutil env activate -p PROJECTNAME |
13 | | - |
14 | | -# Check if $BUDGET_ACCOUNTS was set. |
15 | | -echo $BUDGET_ACCOUNTS |
16 | | -``` |
| 3 | +[](https://github.com/HPSCTerrSys/TSMP2_workflow-engine/actions/workflows/doc.yml) |
17 | 4 |
|
18 | | -In case you are not on a [JSC](https://www.fz-juelich.de/) machine, set the shell variables `PROJECT`, `SCRATCH` (existing pathnames) and `BUDGET_ACCOUNTS` manually. |
19 | | -Instead of setting `BUDGET_ACCOUNTS` you may also replace this variable in `ctl/control_tsmp2.sh`. |
20 | 5 |
|
21 | | -``` bash |
22 | | -cd $PROJECT/$USER |
23 | | -git clone https://github.com/HPSCTerrSys/TSMP2_workflow-engine |
24 | | -wfe_dir=$(realpath TSMP2_workflow-engine) |
25 | | -cd ${wfe_dir} |
26 | | -git submodule update --init |
27 | | -``` |
28 | | - |
29 | | -## Building the model |
30 | | - |
31 | | -The TSMP2 ( https://github.com/HPSCTerrSys/TSMP2 ) should be either already compiled (see [ReadMe TSMP2](https://github.com/HPSCTerrSys/TSMP2/blob/master/README.md)) or compiled with the following steps. |
32 | | - |
33 | | -```bash |
34 | | -cd ${wfe_dir}/src/TSMP2 |
35 | | -./build_tsmp2.sh --icon --eclm --parflow |
36 | | -``` |
37 | | - |
38 | | -Adjust the components to your purpose. |
| 6 | +## Introduction |
39 | 7 |
|
40 | | -## Run experiment |
| 8 | +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. |
41 | 9 |
|
42 | | -If you want to store your run directory files elsewhere than here, set a simulation ID (replace `MY-SIMULATION`) and make `${wfe_dir}/run` into a symlink pointing to your new directory. |
43 | | -``` bash |
44 | | -cd ${wfe_dir} |
45 | | -export sim_id=MY-SIMULATION |
46 | | -export scratch_dir=$SCRATCH/$USER/$sim_id |
47 | | -mkdir -p $scratch_dir/run |
48 | | -git rm run/.gitkeep |
49 | | -ln -snf $scratch_dir/run run |
50 | | -``` |
51 | 10 |
|
52 | | -Adapt resources and time in the setup-script. |
53 | | -``` bash |
54 | | -cd ${wfe_dir}/ctl |
55 | | -vi control_tsmp2.sh |
56 | | -``` |
| 11 | +## Usage / Documentation |
57 | 12 |
|
58 | | -Start simulation |
59 | | -``` bash |
60 | | -./control_tsmp2.sh |
61 | | -``` |
| 13 | +Please check the documentation at https://hpscterrsys.github.io/TSMP2_workflow-engine |
62 | 14 |
|
63 | 15 | ## Contact |
64 | 16 | Stefan Poll <mailto:s.poll@fz-juelich.de> |
0 commit comments