Install

Install

Software Requirements

  • Fortran 90/95 and C compiler

  • MPI or OpenMP libraries

  • netCDF4 library linked with HDF5 and zip libraries and extended by the Fortran netCDF package (The netCDF4 package comes with the programs ncdump and nccopy)

  • UNIX utilities: make, ksh, uname, sed, awk, wget, etc.

  • For post-processing: Climate Data Operators (CDO) and netCDF Operators (NCO)

  • An ICON binary

SPICE uses netCDF I/O of ICON-CLM

Create an ICON Binary

The ICON source code does not come with SPICE because it is not distributed by the CLM-Community. Copy the latest ICON source code from the ICON download page to your working directory. If you do not yet have access, i.e. no private license, go to the License page first.

How to adopt and compile ICON on your computing system is not part of the SPICE documentation. Please read the ICON documentations on how to build a binary.

On Levante at DKRZ perform the following commands for the ICON release icon-2024.07 to create an ICON binary:

$ tar -xvzf icon-model-release-2024.07-public.tar.gz $ cd icon-model-release-2024.07-public

Create your build directory and compile ICON:

$ mkdir build $ cd build $ ../config/clm/levante.intel-2021.5.0_ecrad_2.6.5_optimfpe $ LANG=en_US.utf8 $ make -j 8

Install SPICE

 

1 Get the source code

Go to https://www.clm-community.eu/wiki/wg-suptech/icon-clm/spice/ and download the latest revision, i.e. tag (e.g. 2.3 in the following), as tarball, copy spice-v2.3.tar.gz to your computing system and proceed like so:

$ tar -xvf spice-v2.3.tar.gz $ cd spice-v2.3 $ SPDIR=$PWD # used as a shortcut in the following



2 Get supplementary data 

2.1 Get the example constant and external data files

$ cd ${SPDIR}/data $ ./get_spice_rcm.sh

A directory rcm is created, it holds the necessary data to run the ICON-CLM test experiment.

3 Configure SPICE  and run the test examples