stefan.petri@pik-potsdam.de
This is supplementary material to
Katzenberger, A., Levermann, A., Petri, S., Feulner, G.: Monsoon planet:
Bimodal Rainfall Distribution due to Barrier Structure in Pressure
Fields. Jorunal of Climate, Vol. 37, Nr 4, 1295--1315. January 2024.
doi:10.1175/JCLI-D-23-0055.1
This work is based on the climate model CM2 developed at GFDL [1]
[2]. This setup found its way into the ``official'' MOM5 repository
[3] as test case CM2.1p1 [4] .
Our MonsoonPlanet model, however, uses a slab
ocean model, also developed at GFDL [5] [6] instead of the full 3-D
ocean component MOM5.
commit af3a94d40f21a4b7fd925d13b928f8721ad7d4c8 Merge: 5aec067c 8d40d33d Author: Andrew Kiss <31054815+aekiss@users.noreply.github.com> Date: Mon Oct 26 12:53:18 2020 +1100Note that the updates for the ``official'' MOM5 repository after that referred-to commit are mostly irrelevant for this paper and project, except for a few bug fixes contained in our supplied patch file (see below). Thus, later versions of MOM5 are expected to yield equivalent results.
mkdir MonsoonPlanet cd MonsoonPlanet git clone https://github.com/mom-ocean/MOM5.git . git checkout af3a94d40f21a4b7fd925d13b928f8721ad7d4c8 cd ..Below
MonsoonPlanet you will find some files, and subdirectories
src/ contains the source code bin/ contains mainly configuration files for different environments exp/ contains compilation scripts,
git clone https://github.com/NOAA-GFDL/SM2.git cp -av SM2/src/ocean_slab MonsoonPlanet/src/ocean_mixed_layer
patch < 0_Code/diff-mom5-af3a94d4-MonsoonPlanet-Code.txtThe result youd be very similar to 0_Code/MonsoonPlanet-Code.tar.xz
cd exp ./MOM_compile.csh --helpThis lists the different configurations of the code that can be compiled. The compilation environment (which compiler to use, compiler options, library paths, ...) is specified in
bin/environs.PLATFORM bin/mkmf.template.PLATFORMwhere PLATFORM is to be replaced by a name for your working environment. The name of your PLATFORM is used by the MOM_compile.csh script to select the apropriate environs. and mkmf.template. files.
cd exp ./MOM_compile.csh --platform PLATFORM --type SLAB_CM2M [--vec]Default options specify to compile with optimization but without vectorization, to ensure run-to-run reproducibility. Option --vec specifies to compile with vectorization. See remarks about reproducibility in the provided bin/mkmf.template.pik-hlrs2015-ifort-vec . After many minutes, the executable program is created in
../exec/PLATFORM/SLAB_CM2M/fms_SLAB_CM2M.xresp.
../exec/PLATFORM-vec/SLAB_CM2M/fms_SLAB_CM2M.x
exp/CM2.1p1There should be one subdirectory INPUT/
exp/StripedPlanetAgain, there should be one subdirectory INPUT/
work/That contains one subdirectory for each of the ensemble runs used for the paper.