wiki:DynamicoESM

DYNAMICO + IPSL Earth System Model

DYNAMICO is now coupled with other IPSL models. The source repository can be browsed here. Since July 2017 (HEAT@r186) the LMDZ5 physics are based on revision r2786 (May 2017). Before this update, the physics were based on revision r2251 (April 2015).

How to extract the source files

You must have an account on forge and be part of the HEAT group. Public read-only access will be setup in the future. Checkout the code with the shell command:
svn co svn+ssh://YOUR_LOGIN@forge.ipsl.jussieu.fr/ipsl/forge/projets/heat/svn/codes/dynamico_lmdz/aquaplanet DYNAMICO_ESM
You will be prompted a couple of times for passwords. The first request is for your forge password. The following requests are for downloading ORCHIDEE and XIOS from their respective SVN repositories. Ask us for a password for ORCHIDEE. Your forge login/password will work for XIOS.

Since it may be unclear which login/password is being asked, the checkout may silently fail to download ORCHIDEE or XIOS. To avoid this, it is strongly recommended to execute
svn update
immediately after the checkout, and repeat until the directory is up to date.

The DYNAMICO_ESM directory now contains source code for DYNAMICO, LMDZ, ORCHIDEE, LMDZ and template directories with parameter files for running a few pre-defined configurations.

How to compile models

DYNAMICO_ESM contains the DYNAMICO icosahedral dynamical core, LMDZ5 physics and lon-lat dynamical core, the ORCHIDEE land-surface model and the XIOS I/O server. LMDZ physics can use ORCHIDEE (this configuration is tagged LMDZOR below) or not. These building blocks can be combined into either a standalone LMDZ5 model, or a combination of DYNAMICO core - LMDZ/LMDZOR physics.

The main directory for DYNAMICO-LMDZ is ICOSA_LMDZ, which contains a script that will compile in turn each component, and link them together. Compiling each component requires machine-specific information about libraries and compiler/linker options. This information is provided by files named COMPONENT/arch/arch-ARCH.* where component is one of (ICOSA_LMDZ, ICOSA_GCM, LMDZ5, ORCHIDEE, IOIPSL, XIOS) and ARCH is the string provided to the compilation script (see below). There are pre-defined arch files machines currently used by the IPSL community. To adapt the compilation for another architecture, you must create your own arch files with the appropriate options, for each component.

All examples below and test case templates are given for a LMDZ resolution of 96x95x79 or a DYNAMICO equivalent, on the supercomputer ADA.

  • Compiling DYNAMICO-LMDZ or DYNAMICO-LMDZOR

Go the the ICOSA_LMDZ directory, the ./compile script give a template for ADA supercomputer.

./make_icosa_lmdz -debug -parallel mpi_omp -arch X64_ADA -job 8 -with_orchidee

You will find in the bin directory the executable icosa_lmdz.exe

WARNING : the -debug flag in the above line means that everything is compiled in debug mode, with all optimizations turned off. After running successfully your first simulation, you should recompile everything with the flag -prod instead of -debug, resulting in much faster execution.

  • Compiling LMDZ stand alone

Go the LMDZ5 directory. The ./compile script gives a template for the ADA supercomputer. Notice that the IOIPSL librairy has been compiled already, when compiling with Dynamico in previous step.

You want to generate to executables : the ce0l.e executable for creating the initial lmdz state, and gcm.e for running LMDZ.

./makelmdz_fcm ce0l -d 96x95x79 -mem -parallel mpi_omp -io xios -arch_path ../ARCH -arch X64_ADA -j 8
./makelmdz_fcm gcm -d 96x95x79 -mem -parallel mpi_omp -io xios  -arch_path ../ARCH -arch X64_ADA -j 8

Once this is done, you should find in the bin directory both ce0l_96x95x79_phylmd_para_mem.e and gcm_96x95x79_phylmd_para_mem.e executable.

Pre-defined configurations

After compiling DYNAMICO-LMDZ and, optionnally, LMDZ, the next step is to run one of the pre-defined configurations :

Notice that some configurations require large input files that are not provided under the SVN repository. You must download these files from this wiki page (see attached files : atmosphere). Use bunzip2 to decompress

Generate orography parametrization file for DYNAMICO+LMDZ (D. Cugnet + F. Lott)

  • download sources files + orography file

MAKE_SSO.tar.gz

  • unzip and untar the archive

The source are ready to compile on Irene tgcc supercomputer

  • Compilation on Irene : ./compile
  • Generate topography parametrization file at 2° resolution (exec file) :
    ./make_sso.e -i ETOPO10_Ice_g_gmt4.nc -res 180 91 -v z
    
  • To change the output resolution, use the -res option to set the appropriate resolution
  • The generated file can be used as input file for initial state creation (currently orography_2_00.nc )

Equivalent DYNAMICO resolutions

See here for a correspondence between LMDZ and DYNAMICO resolutions.

Last modified 17 months ago Last modified on 11/09/18 14:41:18

Attachments (1)