Version 14 (modified by snguyen, 2 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