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-publicCreate 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 8Install SPICE
1 Download the latest version of SPICE
Using SSH
git clone git@gitlab.dkrz.de:clm-community/spice.git SPICE_v2.3Using HTTPS
git clone https://gitlab.dkrz.de/clm-community/spice.git SPICE_v2.3Using zenodo:
It is an alternative option, if you don't have access to the version above:
echo "Downloading SPICE package from Zenodo..."
wget -O SPICE_v2.3.tar.gz "https://zenodo.org/records/10047046/files/spice-v2.3.tar.gz?download=1"
echo "Extracting files..."
tar -xvf SPICE_v2.3.tar.gz
echo "Done! Files are in SPICE_v2.3/"$ tar -xvf spice-v2.3.tar.gz
$ cd spice-v2.3
$ SPDIR=$PWD # used as a shortcut in the following2 Get supplementary data
2.1 Get the example constant and external data files
$ cd ${SPDIR}/data
$ ./get_spice_rcm.shA directory rcm is created, it holds the necessary data to run the ICON-CLM test experiment.