Changes between Initial Version and Version 1 of Doc/Config/LMDZOR_v5


Ignore:
Timestamp:
03/24/14 16:18:27 (10 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/Config/LMDZOR_v5

    v1 v1  
     1{{{ 
     2#!html 
     3<h1> The LMDZOR configurations </h1> 
     4}}} 
     5---- 
     6[[TOC(heading=Table of contents,depth=1,inline)]] 
     7[[PageOutline(1,Table of contents,pullout)]] 
     8 
     9Person in charge: Josefine Ghattas 
     10---- 
     11 
     12 
     13# Description # 
     14LMDZOR is a configuration in which the LMDZ and the ORCHIDEE models are coupled. There are different versions and the recommended version is LMDZOR_v5 described below. LMDZOR_v5 is an update of the LMDZOR_v4 version, which is an update of LMDZ4OR_v3. 
     15 
     16# The components' source # 
     17[[NoteBox(warn, Using an unreferenced trunk version of LMDZ or ORCHIDEE is not recommended unless you have talked to the persons in charge of the models first. The outputs of each trunk update are not evaluated. )]] 
     18  
     19## LMDZ ## 
     20The default version is a revision called ''testing'' on the LMDZ5 trunk. This revision is regularly updated. LMDZOR_v5 is compatible with all versions from LMDZ4_AR5. Each user must think about which version to use and adapt it to his/her scientific goal. See chapter [wiki:DocCinstal Setup].  
     21 
     22The LMDZ4_AR5 version is used for CMIP5 at IPSL. To retrieve this version, change `mod.def` as follow : 
     23{{{ 
     24#-C- LMDZOR_v5  LMDZ4/branches/LMDZ4_AR5     XXXX     11 LMDZ    models 
     25}}} 
     26 
     27To retrieve the LMDZ5 trunk (default) : 
     28{{{ 
     29#-C- LMDZOR_v5  LMDZ5/trunk                  XXXX     11 LMDZ    models 
     30}}} 
     31 
     32In both cases, `XXXX` must be replaced by the revision number you want or by HEAD for the latest version. '''Be careful the trunk HEAD is not guaranteed.''' 
     33 
     34## ORCHIDEE ## 
     35The ORCHIDEE version used is the 1.9.5. tag. This tag has been used for CMIP5.  
     36 
     37'''It is possible to use the ORCHIDEE trunk but it is not guaranteed.''' To use the ORCHIDEE trunk you must change the IOIPSL version and change the LMDZ compiling.  
     38In `mod.def` : 
     39{{{ 
     40The original lines :  
     41#-C- LMDZOR_v5  IOIPSL/tags/v2_2_1/src       HEAD     8  IOIPSL/src models 
     42#-C- LMDZOR_v5  tags/ORCHIDEE_1_9_5/ORCHIDEE HEAD    14  ORCHIDEE   models 
     43deviennent :  
     44#-C- LMDZOR_v5  IOIPSL/trunk/src             1660     8  IOIPSL/src models 
     45#-C- LMDZOR_v5  trunk/ORCHIDEE               HEAD    14  ORCHIDEE   models 
     46}}} 
     47 
     48Once the retrieval is completed you must delete the preprocessing parameter ORCHIDEE_NOOPENMP of the LMDZ compilation in order to compile the ORCHIDEE trunk. To this end, remove `-cpp ORCHIDEE_NOOPENMP` in the makelmdz_fcm call (in 2 places and at the end of the file) in `modipsl/config/LMDZOR_v5/AA_make`. Recreate the makefile with `ins_make`.  
     49 
     50With the ORCHIDEE trunk, you can also compile the ORCHIDEE driver used in forced mode (offline). To this end use the ORCHIDEE_DRIVER target in the main makefile. This target can be used only with the ORCHIDEE trunk starting from the 1042 revision. 
     51 
     52# The resolutions # 
     53The model resolution must be chosen during the compiling phase. There are different predefined resolutions to compile. The default resolution is called ''basse résolution'' (low resolution) 96x95x39. The existing resolutions have a target in the main Makefile, in modipsl/config/LMDZOR_v5. For example LMD144142-L39 corresponding to the resolution 144x142x39 is also called ''la moyenne résolution'' (medium resolution). If you want to add a new resolution, use an existing target as an example. 
     54 
     55[[NoteBox(note, Some resolutions are not defined to run a simulation. If you want to change this you must add the corresponding gcm.def file [wiki:DocImodelBlmdz see here for the details].)]] 
     56 
     57 
     58# Experiments # 
     59## Initial and boundary conditions ## 
     60By default you must create initial and boundary condition files for LMDZOR. See the details of [wiki:DocImodelBlmdz LMDZ].  
     61You can perform an experiment with ORCHIDEE with or without restart file. See the details of [wiki:DocImodelCorchidee ORCHIDEE].  
     62The predefined experiments have different boundary conditions specified in the `limit.nc` file. 
     63 
     64## Predefined experiments ## 
     65There are two predefined experiments: clim and amip. The difference is for the boundary conditions.  
     66 * clim : the experiment uses boundary conditions (`limit.nc` file: surface temperature and sea ice fraction) produced with climatic amip. The same `limit.nc` file is used in the whole simulation. These files are created with job CREATE_clim in `EXPERIMENTS/LMDZ/CREATE_clim`. 
     67 * amip : the experiment has interannual boundary conditions produced by interannual amip files. These files are created with `CREATE_amip` in `EXPERIMENTS/LMDZ/CREATE_amip`. 
     68 
     69There is a predefined experiment using LMDZ only in `EXPERIMENTS/LMDZ/clim`. It corresponds to the experiment `LMDZOR/clim` without ORCHIDEE and with a simplified land model in LMDZ. 
     70 
     71## ORCHIDEE experiments without stomata ## 
     72In the ORCHIDEE experiments the sechiba and stomate sections are switched on by default. To deactivate the stomata component, see the ORCHIDEE model [wiki:DocImodelCorchidee here]. 
     73 
     74# Parallelism # 
     75 
     76See the chapter for LMDZ model in Home documentation : [[BR]] 
     77 
     78[wiki:DocImodelBlmdz#ParallelismandtheBandsfile] 
     79 
     80 
     81# Summary of the commands # 
     82 
     83{{{ 
     84#!sh 
     85svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl 
     86cd modipsl/util 
     87./model LMDZOR_v5 
     88cd ../config/LMDZOR_v5 
     89gmake # par défaut LMD9695-L39 
     90 
     91# Creating start and limit.nc files (to be done once per resolution) 
     92cp EXPERIMENTS/LMDZ/CREATE_clim/config.card . 
     93../../util/ins_job 
     94cd ELC-96x95x39 
     95ccc_msub Job_ELC-96x95x39   / llsubmit Job_ELC-96x95x39 
     96 
     97# The gcm 
     98cp EXPERIMENTS/LMDZOR/clim/config.card . 
     99vi config.card # modify JobName (at least) : MYJOBNAME 
     100../../util/ins_job 
     101cd MYJOBNAME 
     102vi Job_MYJOBNAME 
     103ccc_msub Job_MYJOBNAME  / llsubmit Job_MYJOBNAME 
     104}}} 
     105 
     106 
     107# How to retrieve ORCHIDEE_OL in a LMDZOR configuration? # 
     108 
     109In case you want to work in the coupled and in the associated forced modes simultaneously, you will find it useful to have two configurations sharing the same '''modipsl'''. To this end, you must change the '''mod.def''' file before retrieval. For example, you can add the ORCHIDEE_OL configuration to the LMDZOR_v5 configuration. Be careful, the following example only works for an ORCHIDEE version containing a ORCHIDEE/src_driver directory (in the recent ORCHIDEE version and starting from the 1042 revision of the ORCHIDEE trunk, all sources including driver sources are in the ORCHIDEE directory). 
     110 
     111In modipsl/util/mod.def, change the 2 following lines: 
     112{{{ 
     113#-C- LMDZOR_v5  IOIPSL/trunk/src                      1660               8  IOIPSL/src models 
     114#-C- LMDZOR_v5  trunk/ORCHIDEE                        HEAD               14 ORCHIDEE   models 
     115}}} 
     116and add the following line: 
     117{{{ 
     118#-C- LMDZOR_v5  trunk/ORCHIDEE_OL                     HEAD               14 ORCHIDEE_OL config 
     119}}} 
     120Retrieve the configuration in modipsl/util: "./model LMDZOR_v5". Start compiling and compile the libraries in modipsl/config/LMDZOR_v5 : 
     121{{{ 
     122#!sh 
     123gmake                        # To compile the ORCHIDEE library and the gcm 
     124gmake ORCHIDEE_DRIVER        # To compile the drivers and link to the ORCHIDEE libraries 
     125}}} 
     126 
     127Once the compiling is done, you can work in config/LMDZOR_v5 for a coupled LMDZ-ORCHIDEE experiment or in modipsl/config/ORCHIDEE_OL for an offline experiment. You will therefore use the same sources for the two configurations.