Bannière IPSL

2.3 Defining the configuration


Sub-sections







It is mandatory to install :

Fortran 90 compiler
netCDF library compiled with real*8

2.3.1 Installation and configuration of the makefiles



It is necessary to put in place the make files that will be used to generate the executables.
The makefiles depend on the platform and are generated by the files :

AA_make.ldef
AA_make.gdef
AA_make

The makefiles are generated by the ins_make commande as follows :

rhodes : ins_make [-t sxnec]


Below is some help on the ins_make command :
Usage : ins_make [-h] [-v] [-d] [-p r] [-t h]
-h : help
-v : verbose mode
-t h : target host_name
-d : debug mode
-p r : real_precision 4/8
Example for remote host compilation
ins_make -t sxnec
Default : -t local_host

2.3.2 Executables creation



To create the librairies and the executables, the gmake command must be entered in the IPSLCM4_v1 directory. The default mode generates the executables in low resolution (ORCA4xLMD7245). To generate the executables in medium resolution the argument ORCA2xLMD9671 must be passed to gmake at the first call. For each resolution a .resol file is generated, containing the resolution chosen at the time of first compilation of the model. For the following calls gmake can be called without the argument, the initial resolution is remebered.
Arborescence de IPSLCM4_v1


N.B. :The .resol file is only created if first compilation ran correctly.
N.B. : The .resol file is only relevant for the directory in which it lies.


The next two paragraphs give the instructions to follow depending on the resolution in which the model was compiled.

2.3.3 Low resolution compilation - ORCA4xLMD7245





rhodes : cd ../modeles/IPSLCM4_v1 NOT TO BE FORGOTTEN !!!
rhodes : gmake Executables
and librairies creation
for the low resolution


2.3.4 Medium resolution compilation - ORCA2xLMD9671



rhodes : cd ../modeles/IPSLCM4_v1 NOT TO BE FORGOTTEN !!!
rhodes : gmake ORCA2xLMD9671 Executables
and librairies creation
for the medium resolution


2.3.5 Compilation successfully



The compilation of IPSL Coupled model is a 5 step process :

IOIPSL compilation
OASIS compilation
ORCHIDEE compilation
LMDZ comilation
ORCA + LIM compilation


Following this, compilation can be considered as having been successful if the following message appears :

In medium resolution

Figure 2.4 : Medium resolution compilation
resol_ORCA2xLMD9671

In low resolution

Figure 2.5 : Low resolution compilation
resol_ORCA4xLMD7245


2.3.6 Encountering compilation problems with ORCA



General points :
The whole package must be compiled with the REAL*8 option (REAL*4 will not work). This means that the netCDF library must also be in REAL*8 Problems while running the Makefile(s) :
if the Makefile seems unable to take properly in account the source files, i.e you get a message like "unable to create...", then :

rhodes : cd modeles/OPA ; ../UTIL/fait_AA_make
rhodes : cd ../"MODEL_NAME"; ../../util/ins_make [options]


and try again...

2.3.7 Recompiling the model



In case of successful compilation of the selected model, a .resol file has been generated and contains the information on the resolution in which was made the inital compilation. However the model must be recompiled after each modification in the sources. The needed commands are very simple :

rhodes : cd STD_TEST/modipsl/modeles/IPSLCM4_v1  
rhodes : cat .resol Optional resolution verification
rhodes : gmake Executables
and librairies creation
for the resolution
specified in .resol





CNRS - Institut Pierre Simon Laplace

Université Pierre et Marie Curie
4, place Jussieu
casier 101
75252 PARIS Cedex 5
FRANCE