Skip to content
Snippets Groups Projects
Commit 32be5083 authored by Stefano Serafin's avatar Stefano Serafin
Browse files

ICON.md, minor edits for clarity

parent b8dd6121
Branches
Tags
No related merge requests found
......@@ -101,18 +101,18 @@ ICON can be downloaded and used under a [personal non-commercial research licens
1. Prepare for an out-of-source build. Create a build directory wherever you want and move into it. In the build directory, execute `jet.ifort.sh` (the configuration script above)
```sh
/jetfs/home/serafin/ICON/icon-2.6.6/config/univie/jet.ifort.sh
(mypy36) [serafin@jet01 jet]$ /jetfs/home/serafin/ICON/icon-2.6.6/config/univie/jet.ifort.sh
```
1. Set the `LD_LIBRARY_PATH` environmental variable so that the Intel Math Library is accessible during compilation:
```sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/jetfs/spack/opt/spack/linux-rhel8-skylake_avx512/intel-20.0.2/intel-parallel-studio-composer.2020.2-zuot22yfoe7jl67ttimvkzghwluvyaas/lib/intel64_lin
(mypy36) [serafin@jet01 jet]$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/jetfs/spack/opt/spack/linux-rhel8-skylake_avx512/intel-20.0.2/intel-parallel-studio-composer.2020.2-zuot22yfoe7jl67ttimvkzghwluvyaas/lib/intel64_lin
```
The code will not build otherwise. Setting this variable may have to be necessary even at runtime (not tested yet!).
1. Compile the code by running the following in the build directory (`-j8` is optional, it's only about running multiple compile jobs in parallel):
```sh
make -j8
(mypy36) [serafin@jet01 jet]$ make -j8
```
1. Copy in the build directory all the files needed to generate the ICON run scripts. The easiest way to do so is to use the following script (after editing the paths `ICON_SRC_DIR` and `ICON_BUILD_DIR`):
......@@ -135,3 +135,7 @@ ICON can be downloaded and used under a [personal non-commercial research licens
ln -sf $ICON_SRC_DIR/data
ln -sf $ICON_SRC_DIR/vertical_coord_tables
```
You may call it `copy_make_runscripts.sh`, then give it execution permissions and run it:
```sh
(mypy36) [serafin@jet01 jet]$ ./copy_make_runscripts.sh
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment