Version 24 (modified by snguyen, 5 years ago) (diff)


Preparing an IPSLCM6 model without PISCES and ORCHIDEE for compiling and simulation

For the sake of simplicity the Schwarz algorithm was only implemented and tested without PISCES for the ocean and without ORCHIDEE for the atmosphere.

As well, regarding resolution, the method was implemented on the ORCA2 grid for NEMO and a 96x95-39 grid for LMDZ.

The ice model retained was LIM3 which allows for greater control and is conservative.

The various steps to get a working IPSLCM6 model with these settings are now described.

IPSLCM6 model

Get the latest IPSLCM6 model from the forge repository.

In the workdir of your project, create a directory for your new IPSLCM6 installation, move into it and get modipsl by executing:

svn co modipsl

Go in modipsl/util and execute:

./model -h

to get the list of downloadable models and configurations.

Choose the latest IPSLCM6 model, for instance IPSLCM6.1.9-LR. Download it by executing:

./model IPSLCM6.1.9-LR

Setting an ORCA2LIM3PISCES configuration in NEMOGCM/CONFIG

Go to the modeles/NEMOGCM/CONFIG directory and have a look at the available configurations with ls.

Since ORCA2_LIM3_PISCES is not a standard configuration of NEMO in the IPSLCM6 model it is necessary to create this configuration. In order to retain the latest changes to NEMO-LIM3 we use the ORCA1_LIM3_PISCES configuration as a template.

To do this execute the following lines:

./makenemo -n ORCA2_LIM3_PISCES -r ORCA1_LIM3_PISCES -m X64_IRENE -j0
./makenemo -n ORCA2_LIM3_PISCES -m X64_IRENE clean

The first line creates a new directory ORCA2_LIM3_PISCES based on ORCA1_LIM3_PISCES retaining all changes to the sources in the MY_SRC directory. This will let you have the latest changes to NEMO-LIM3. As a side effect you also get PISCES changes which will anyway not be compiled since it is removed at compile time.

The second line cleans the ORCA2_LIM3_PISCES directory from temporary files that may have been imported from ORCA1_LIM3_PISCES.

Check the cfg.txt file. It should contain a line with ORCA2_LIM3_PISCES and the same list of components (to use for compilation) than ORCA1_LIM3_PISCES.

Preparing the IPSLCM6 Makefile to compile ORCA2_LIM3 + LMDZ96x96-L39 NOP (NO ORCHIDEE, NO PISCES)

Go in your configuration directory: modipsl/config/IPSLCM6.

Edit the file Makefile.

Add the following sections to it, (be carefull that indented sections must use a Tab character for the makefile to work):

ORCA2LIM3xLMD9695-L39-NOPISCES-NOORCH : libioipsl oasis3-mct xios orca2lim3nopisces lmdz96x95x39noorch verif
    echo "ORCA2LIM3xLMD9695-L39-NOPISCES-NOORCH" >.resol
    echo "RESOL_ATM_3D=96x95x39" >>.resol
    echo "$(LIB_MPI)" >.libmpi
    $(M_K) lmdznoorch RESOL_LMDZ=96x95x39
lmdznoorch: ../../modeles/LMDZ
    (cd ../../modeles/LMDZ ; ./makelmdz_fcm -d $(RESOL_LMDZ) -debug -mem -cosp true -v false -parallel mpi_omp -io xios -rrtm true -c OMCT -job 8 -arch $(FCM_ARCH) gcm  ; mv bin/gcm_$(RESOL_LMDZ)_phylmd_para_mem_couple.e ../../bin/gcm.e ; )
orca2lim3nopisces:  ../../modeles/NEMOGCM/CONFIG
    (cd ../../modeles/NEMOGCM/CONFIG; cp ../../../config/IPSLCM6/SOURCES/NEMO/arch-${FCM_ARCH}.fcm ../ARCH/. ; cp ../../../config/IPSLCM6/SOURCES/NEMO/*.cfg ../TOOLS/COMPILE/. ; ./makenemo -m ${FCM_ARCH} -n ORCA2_LIM3_PISCES -d "OPA_SRC LIM_SRC_3 NST_SRC TOP_SRC" -e "$(MYSRC_DIR)/SOURCES/NEMO" -j16 add_key "key_lim3 key_oasis3" del_key "key_lim2 key_nosignedzero key_top key_pisces key_age key_cfc" ; cp ORCA2_LIM3_PISCES/BLD/bin/nemo.exe ../../../bin/opa ; )

Now the model should compile with command:


Setting an experiment directory

First install a new picontrol_TEST experiment in the config/IPSLCM6/ directory.

From this directory execute:

cp EXPERIMENTS/IPSLCM/piControl_TEST/config.card .

Edit config.card and set the name of your experiment, for instance:


Launch the ins_job script:


Answer the questions and a new IPSLCM6A-VLRNOP will be created. Move into this directory.

Edit config.card and set the ORCA_version parameter to ORCA2.3.

We will now review the changes that need to be made to each component.card file in COMP and to the namelist and config files in PARAMETER.


  1. Edit the lim3.card file in the COMP directory.

Replace this line:

ListNonDel= (${R_IN}/OCE/IPSLCM6/${opa9_UserChoices_ORCA_version}/ , .  )


ListNonDel= ()

In the paragraph:

List=   (${MODIPSL}/modeles/NEMOGCM/CONFIG/SHARED/namelist_ice_lim3_ref                  , namelist_ice_ref       ), \
        (${MODIPSL}/modeles/NEMOGCM/CONFIG/ORCA1_LIM3_PISCES/EXP00/field_def_nemo-lim.xml, field_def_nemo-lim.xml ), \
        (${SUBMIT_DIR}/PARAM/namelist_lim3_${RESOL_OCE}_cfg_${LMDZ_Physics}              , namelist_ice_cfg       ), \
        (${SUBMIT_DIR}/PARAM/file_def_nemo-lim3.xml                                      , file_def_nemo-lim.xml  )

change namelist_lim3_${RESOL_OCE}_cfg_${LMDZ_Physics} to

  1. Edit the namelist file in the PARAM directory.

In namelist_lim3_ORCA2_cfg add this line to the &namicerun section:

   jpl            =    1           !  number of ice  categories

To work with a monocategory ice model.

In the &namiceitd section add this line:

   rn_himax_bot = 99.             !  max ice thickness in the last category jpl

forgetting to set this line will cause NEMO to crash with NANs in the ssh variable as this line may not be in namelist_ice_lim3_ref.


  1. Edit lmdz.card in COMP.

Set LMDZ_Physics=NPv6.1 to LMDZ_Physics=AP.

Set read_climoz=1 to read_climoz=2.

You may (or may not) remove COSP outputs by setting LMDZ_COSP_OK=n.

In case you need initial start files change:

List=  (${R_IN}/ATM/START/${config_UserChoices_ORCA_version}xLMD${RESOL_ATM_XY}/start_${config_UserChoices_ORCA_version}xLMD${RESOL_ATM_3D}   ,       ), \
       (${R_IN}/ATM/START/${config_UserChoices_ORCA_version}xLMD${RESOL_ATM_XY}/startphy_${config_UserChoices_ORCA_version}xLMD${RESOL_ATM_3D},    )


List= (${R_IN}/ATM/IPSLCM6/${config_UserChoices_ORCA_version}xLMD${RESOL_ATM_XY}/start_${config_UserChoices_ORCA_version}xLMD${RESOL_ATM_3D}   ,       ), \
      (${R_IN}/ATM/IPSLCM6/${config_UserChoices_ORCA_version}xLMD${RESOL_ATM_XY}/startphy_${config_UserChoices_ORCA_version}xLMD${RESOL_ATM_3D},    )

In [BoundaryFiles] and ListNonDel section set:

  1. Edit LMDZ config files in PARAM.