Getting Started
Requirements to run ICON-ART
As for most atmospheric models, it is strongly recommended to run ICON-ART on a High Performance Computing system such as Levante from the DKRZ or HoreKA from KIT. This usually requires an account which has to be obtained through the respective HPC Systems procedures.
The auto-icon tool for automating runs
auto-icon is a flexible tool for automating ICON(-ART) runs, starting from the retrieval of input data to post-processing and visualization. After an initial set-up, a great simplification in running various examples can be achieved. auto-icon takes care of obtaining the model code and installing it on the desired HPC system, retrieving parts of the input data (more to come) and running the model. Custom post-processing and visualization tasks can be added to the pipeline to get them executed automatically. The automation engine behind auto-icon, called Autosubmit, is a powerful and flexible tool, providing multi-platform support, fault tolerance and an experiment database. The latter stores metadata for all conducted experiments and allows simple finding and reproduction of existing workflows, thus promoting the FAIR principles.
The configurations for the ICON-ART standard cases (see below and Tutorial examples) are included as templates along with a few other cases. These run out of the box in just a few steps. There is a separate Wiki for auto-icon with a shortest guide to success and a more detailed guide.
The remainder of this Wiki serves as valuable source of information on how ART works, while the auto-icon Wiki only deals with technical aspects of auto-icon. Further, auto-icon does not use runscripts to conduct the runs but instead loads a configuration and a namelist describing the whole model workflow. The correspondence of runscript entries with the configuration is demonstrated in this guide.
You can choose between using auto-icon for your runs or the runscript approach. For the former, consult the linked pages, for the latter go on with the remainder of this page to get started.
Getting the source code
The source code for ART is available in the open-source ICON repository under www.icon-model.org
To clone the ICON repository use :
git clone --recursive https://gitlab.dkrz.de/icon/icon-model.git
This will get the ICON reository. To get the all submodules (including ART):
git submodule update --init
Installation
ICON-ART is already included in the most recent ICON version. For Instructions on how to install ICON, please refer to the first chapter of the ICON Model Tutorial.
The only caveat is that during the configuration step the tag --enable-art
has to be included. In addition, to set up and use chemical mechanisms using the MECCA/KPP the related interfaces have to be included using the tag --enable-art —enable-art-gpl
(Be aware that you accept the GPL conditions for MECCA and KPP when you use this option).
General step-by-step guide:
- Navigate to your ICON main folder.
- Within this directory, you will find the 'config' folder.
- Inside the 'config' directory, there are several subfolders corresponding to different institutions.
- In each institutional folder, you will find configuration scripts tailored for various computers and compilers.
Example for HoreKa at KIT:
- Access your ICON main folder.
- Run the following command:
config/kit/hk.intel-2022-openmpi-4.0 --enable-art --enable-ecrad
- Execute
make -j4
- You should now have a functional binary with ART integration. For other HPC systems, substitute the config script with the one relevant to your HPC system.
Creating a Runfile
- Go to
icon-kit/run/checksuite.icon-kit
- Run bash-script
run_testsuite
via./run_testsuite
- The script creates the folder runscripts, which contains exemplary runfiles which are adapted to your HPC-System (if available in the config files). For the description of the runscripts see the table below.
- in
icon-kit/run/checksuites.icon-kit/Test-<current_date>.info
you will find a few informations to the ICON-ART Testsuite you just created, including your output directory when you perform the model runs in the next step
- To run your chosen runscript just execute from the console, e.g. by typing
runscripts/NWP_LIFETIME.run
runscript | description |
---|---|
NWP_OH_CHEMISTRY.run | Short example for simplified oh chemistry |
NWP_GASPHASE.run | Example for MECCA chemistry based on https://gmd.copernicus.org/articles/11/4043/2018/ |
NWP_LIFETIME.run | Example for parameterized chemtracer chemistry including lifetime, simnoy, linoz and passive tracers, as well as regional tracers and PSCs |
NWP_EXT_DATA.run | tbd |
NWP_LIFETIME_lart.run | tbd |
NATAERO_NORAD.run | tbd |
VOLAERO_RAD.run | tbd |
Running a Job
For a user who succeeded in running the ICON model, there are only a few steps to run the ART extension along with the ICON model. A description how to run the ICON model can be found in .
In order to run ICON-ART, one has to do the following steps:
- Make sure you have everything required for an ICON run
- Prepare the input data (see section Input )
- Inside the runscript in the namelist run_nml, set the main switch for ICON-ART to true: lart = .true.
- Add a namelist art_nml and choose the namelist parameters for the ART setup as described in Input.
- Adapt the XML files for tracers, emi. The number of tracers related to a specific setup is equal to the number of possible prognostic output fields as described in Input.
- Add an output namelist as described in for the species you are interested in Input.
- Submit the job analogous to an ICON job.