Comment récupérer les sources LMDZ4 et installer le modèle via MODIPSL ?

How to install LMDZ4 coupled to other components using MODIPSL?
Two versions can in fact be installed this way:
LMDZ4OR with LMDZ4 for the atmosphere and ORCHIDEE for the continental surfaces, soon, IPSLCM4 with LMDZ4 ORCHIDEE and ORCALIM for the ocean.
Installation using MODIPSL is more convenient if you are using LMDZ for the frirst time or if you want to use LMDZ coupled to other components.

Go to the full documantation of MODIPSL if you want to undernstand what MODIPSL is doing and if you meet any problem.
The lines bellow gives a short user-manual which is enough to install the model.



Initialisation of CVS servers logins (first time only)

 > cvs -d :pserver:anonymous@cvs.ipsl.jussieu.fr:/home/ioipsl/CVSROOT  login
(passwd=anonymous)
 > cvs -d :pserver:opa@cvs.ipsl.jussieu.fr:/home/opalod/CVSROOT  login
(passwd=opa2000)
 >  cvs -d :pserver:lmdzbrowse@cvs.lmd.jussieu.fr:/home/cvsroot login 
(passwd=lmdzb2000)
 >  cvs -d :pserver:sechiba@cvs.ipsl.jussieu.fr:/home/ssipsl/CVSREP  login
(passwd to be asked to Jan POLCHER)

Create a root directrory

 > mkdir STD_TEST
 > cd STD_TEST

Install modipsl

 > cvs -d:pserver:anonymous@cvs.ipsl.jussieu.fr:/home/ioipsl/CVSROOT co modipsl

Extract and install the model

 > cd modipsl/util
 >  model -h
gives the list of available configurations configuration
 >  model IPSLCM4_v1
or
 >  model LMDZ4OR

Then create makefiles:

 > ins_make
or, for cross-compilation from NEC :
 > ins_make [-t sxnec]
then
 > cd ../modeles/IPSLCM4_v1
or
 > cd ../modeles/LMDZOR
(not LMDZ4OR). Sources of the individual model components are on ../modeles/... You will find LMDZ on ../modeles/LMDZ4

Model compilation

Normally, the compilation is done by simply running
 > gmake 
However, because LMDZ4 is young, you must first edit the Makefile and change LMDZ.3.3 into LMDZ4. You must also destroy the two lines including create_etat0 and create_limit.
Note that gmake will first compiles IOIPSL and ORCHIDEE or ORCALIM depending on the configuration.
Only if you want to compile LMDZ directly, you change directory
 > cd ../LMDZ4 
in order to compile LMDZ:
 > makegcm -d 96x71x19 -v true gcm 
or
 > makegcm -d 96x71x19 -v true create_etat0_limit 

Possible problems

On NEC, if the command gmake does not succeed with a diagnostic like "gmake not found", it probably comes from the makegcm file. You must change, below
 else if $XNEC then
the line
set make="gmake RANLIB=ls"
by
set make="/usr/freeware/bin/gmake RANLIB=ls"
or find the real cause and tell us ...



Pour installer LMDZ4 via MODIPSL, lire les avertissements ci-dessous puis se reporter au manuel de MODIPSL

    Les deux versions vraiment distribuées via MODIPSL sont LMDZ4OR (LMDZ4+ORCHIDEE pour la végétation) et le couplé complèt (LMDZ4+ORCALIM+ORCHIDEE). Vous pouvez aussi récupérer les sources de LMDZ4 seul via MODIPSL.

    Installation de CPLISPLCM4 :

    Attention, pour le moment, seul LMDZ.3.3 est disponible pour la distribution MODIPSL de IPSLCM4.
    Suivre fidèlement manuel de base après avoir demandé le mot de passe cvs d'ORCHIDEE à Jan.Polcher@lmd.jussieu.fr.

    Installation de LMDZ4OR (LMDZ4+ORCHIDEE) :

    Si vous voulez récupérer ORCHIDEE (pour la version LMDZ4OR ou CPLIPSCM4), il faut demander un mot de passe à Jan.Polcher@lmd.jussieu.fr
    Le message "ATTENTION : déplacez-vous dans LMDZ4 et lancez makegcm ..." est obsolète pour LMDZ4OR. En revanche, il est valable si vous installez LMDZ4 seul.
    Le répertoire LMDZ4OR/scripts n'existe pas. Le répertoire correspondant s'appelle LMDZ4OR/EXP00

    Installation de LMDZ4 :

    MODIPSL vous sesrvira uniquement à rapatrier les sources ce que vous pouvez aussi faire directement Si vous passez par MODIPSL, vous n'avez pas besoin du mot de passe pour ORCHIDEE. Ne tappez donc pas la ligne
    cvs -d :pserver:sechiba@cvs.ipsl.jussieu.fr:/home/ssipsl/CVSREP login
    En revanche, il vous faudra lancer la commander makegcm à la main et vous ne disposerez pas de script de lancement automatique.
    Dans tous les cas, si vous installez depuis rhodes, pensez bien à utiliser l'option -t sxnec quand c'est proposé.