Skip to content

Commit

Permalink
ref(todi): itemize
Browse files Browse the repository at this point in the history
  • Loading branch information
leclairm committed Jul 4, 2024
1 parent ff262a6 commit 3c9977c
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions docs/models/icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,37 +51,37 @@ srun -N 1 -c 12 --mem-per-cpu=20G spack install -v -j 12
- The resulting executable is not tested.
- Anything can go wrong

install latest `uenv` tool
```shell
git clone [email protected]:eth-cscs/uenv.git && ./uenv/install --local
```

Get `spack-c2sm` on the `uenv_ci` branch
```shell
git clone --depth 1 --recurse-submodules --shallow-submodules -b uenv_ci https://github.com/C2SM/spack-c2sm.git
```

Start user environment
```shell
uenv start /capstor/scratch/cscs/leclairm/uenvs/images/icon_c2sm_v1_rc3.sqfs
```

Setup `spack-c2sm`
```shell
source spack-c2sm/setup-env.sh /user-environment
```

Adapt your spack environment following `/capstor/scratch/cscs/leclairm/icon-nwp/config/cscs/spack/uenv/mch_gpu_double/spack.yaml` and activate it as usual with `spack env activate`.

Build as usual from your icon root dir
```shell
spack install
```

Submit job with uenv
```shell
sbatch --uenv /capstor/scratch/cscs/leclairm/uenvs/images/icon_c2sm_v1_rc3.sqfs my_run_script
```
- Install latest `uenv` tool
```shell
git clone [email protected]:eth-cscs/uenv.git && ./uenv/install --local
```

- Get `spack-c2sm` on the `uenv_ci` branch
```shell
git clone --depth 1 --recurse-submodules --shallow-submodules -b uenv_ci https://github.com/C2SM/spack-c2sm.git
```

- Start user environment
```shell
uenv start /capstor/scratch/cscs/leclairm/uenvs/images/icon_c2sm_v1_rc3.sqfs
```

- Setup `spack-c2sm`
```shell
source spack-c2sm/setup-env.sh /user-environment
```

- Adapt your spack environment following `/capstor/scratch/cscs/leclairm/icon-nwp/config/cscs/spack/uenv/mch_gpu_double/spack.yaml` and activate it as usual with `spack env activate`.

- Build as usual from your icon root dir
```shell
spack install
```

- Submit job with uenv
```shell
sbatch --uenv /capstor/scratch/cscs/leclairm/uenvs/images/icon_c2sm_v1_rc3.sqfs my_run_script
```

## Run test case with ICON
In the *run* folder, you find many prepared test cases, which you can convert into run scripts. To generate the runscript of one of the experiment files, e.g. *mch_ch_lowres*, you can use the `make_runscripts` function.
Expand Down

0 comments on commit 3c9977c

Please sign in to comment.