ICON can be downloaded and used under a personal non-commercial research license (https://code.mpimet.mpg.de/projects/iconpublic/wiki/Instructions_to_obtain_the_ICON_model_code_with_a_personal_non-commercial_research_license). An account at <code.mpimet.mpg.de> is required. Instructions are available on the [public ICON page](https://code.mpimet.mpg.de/projects/iconpublic).
drwxr-xr-x 5 serafin users 4,0K 20 mar 17.05 adify
drwxr-xr-x 14 serafin users 4,0K 20 mar 17.05 config
drwxr-xr-x 5 serafin users 4,0K 20 mar 17.05 data
drwxr-xr-x 10 serafin users 4,0K 20 mar 17.05 doc
drwxr-xr-x 3 serafin users 4,0K 20 mar 17.05 etc
drwxr-xr-x 18 serafin users 4,0K 20 mar 17.05 externals
drwxr-xr-x 2 serafin users 4,0K 20 mar 17.05 grids
drwxr-xr-x 3 serafin users 4,0K 20 mar 17.05 license
drwxr-xr-x 2 serafin users 4,0K 20 mar 17.05 m4
drwxr-xr-x 18 serafin users 16K 20 mar 17.05 run
drwxr-xr-x 2 serafin users 4,0K 20 mar 17.05 run_art
drwxr-xr-x 3 serafin users 4,0K 20 mar 17.05 schedulers
drwxr-xr-x 20 serafin users 4,0K 20 mar 17.05 scripts
drwxr-xr-x 38 serafin users 4,0K 20 mar 17.05 src
drwxr-xr-x 2 serafin users 4,0K 20 mar 17.05 support
drwxr-xr-x 8 serafin users 4,0K 20 mar 17.05 utils
drwxr-xr-x 2 serafin users 4,0K 20 mar 17.05 vertical_coord_tables
-rw-r--r-- 1 serafin users 13K 9 feb 14.48 claw.mk.in
-rw-r--r-- 1 serafin users 2,6K 7 feb 11.50 config.h.in
-rwxr-xr-x 1 serafin users 371K 9 feb 14.48 configure
-rw-r--r-- 1 serafin users 113K 9 feb 14.48 configure.ac
-rw-r--r-- 1 serafin users 641 7 feb 11.50 COPYING
-rw-r--r-- 1 serafin users 47 7 feb 11.50 depgen.c.config.in
-rw-r--r-- 1 serafin users 1,7K 9 feb 14.48 depgen.f90.config.in
-rw-r--r-- 1 serafin users 389 9 feb 14.48 deplist.config.in
-rw-r--r-- 1 serafin users 27K 9 feb 14.48 icon.mk.in
-rw-r--r-- 1 serafin users 2,9K 9 feb 14.48 inlib.mk.in
-rw-r--r-- 1 serafin users 3,8K 9 feb 14.48 Makefile.in
-rwxr-xr-x 1 serafin users 8,8K 9 feb 14.48 make_runscripts
-rw-r--r-- 1 serafin users 2,4K 9 feb 14.48 README.art
-rw-r--r-- 1 serafin users 73K 9 feb 14.48 README.md
-rw-r--r-- 1 serafin users 11K 9 feb 14.48 RELEASE_NOTES.md
```
1. Generate a configuration script for the machine where the code has to run. In practice, go to `config` and create a directory `univie` in there. In the `univie` directory, place this file:
This configure script does two things: i) loads a selection of environment modules; ii) runs the ICON configure scripts passing all the required compiler flags.
1. Prepare for an out-of-source build. Create a build directory wherever you want and move into it. From the build directory, execute `jet.ifort.sh` (the configuration script above):
1. Set the `LD_LIBRARY_PATH` environmental variable so that the Intel Math Library is accessible during compilation:
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 in the build directory:
```sh
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`):