Changes between Version 21 and Version 22 of Doc/Compile


Ignore:
Timestamp:
10/10/19 17:01:56 (4 years ago)
Author:
acosce
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/Compile

    v21 v22  
    5353 
    5454 
    55 Each model configuration XXX'' has a main makefile which provides information about each model component's makefiles. The main Makefile is stored in the modipsl/config/XXXX directory. The main Makefile is created when a model configuration is downloaded and installed. [[BR]] 
     55Each model configuration XXX has a main makefile which provides information about each model component's makefiles. The main Makefile is stored in the modipsl/config/XXXX directory. The main Makefile is created when a model configuration is downloaded and installed. [[BR]] 
    5656 
    5757 
     
    6060#!sh 
    6161cd modipsl/util 
    62 ./model LMDZOR_v5  
     62./model LMDZOR_v6.1.10 
    6363(...) 
    64 Makefiles setup, scripts and data for ada 
    65  
    66 Installation in ../config/LMDZOR_v5 
    67 Path from Makefile to modipsl/util : ../../util 
    68 Installation in ../modeles/IOIPSL/src 
    69 Path from Makefile to modipsl/util : ../../../util 
    70 Installation in ../modeles/ORCHIDEE/src_global 
    71 Path from Makefile to modipsl/util : ../../../util 
    72 Installation in ../modeles/ORCHIDEE/src_parameters 
    73 Path from Makefile to modipsl/util : ../../../util 
    74 Installation in ../modeles/ORCHIDEE/src_parallel 
    75 Path from Makefile to modipsl/util : ../../../util 
    76 Installation in ../modeles/ORCHIDEE/src_stomate 
    77 Path from Makefile to modipsl/util : ../../../util 
    78 Installation in ../modeles/ORCHIDEE/src_sechiba 
    79 Path from Makefile to modipsl/util : ../../../util 
    80 Installation in ../modeles/ORCHIDEE 
     64Makefiles setup, scripts and data for irene 
     65 
     66Installation in ../config/LMDZOR_v6 
    8167Path from Makefile to modipsl/util : ../../util 
    8268 
     
    8975./ins_make 
    9076}}} 
     77 
    9178The main Makefile is created by concatenating the following 3 items: ''AA_make.ldef'' and ''AA_make'' located in the directory where the main Makefile will be created, and the lines corresponding explicitly to the target machine of the  ''util/AA_make.gdef'' file. For each predefined machine the util/AA_make.gdef file contains the compiler settings. If your machine is not included, you can choose a target among the predefined machines in AA_make.gdef or you can add a new one.  
    9279 
     
    9683 
    9784(...) 
    98 #-Q- ada 
     85#-Q- jeanzay 
    9986(...)  
    100 #-Q- curie 
     87#-Q- irene 
    10188(...)  
    10289#-Q- aix6 
     
    113100 
    114101 
    115 # The main makefile # 
    116 The Makefile is available for different resolutions. Example with LMDZOR_v5 : 
    117 {{{ 
    118 LMD4443 : libioipsl liborchidee lmdz44x43x19 verif      
    119         echo "noORCAxLMD4443" >.resol 
    120         echo "RESOL_ATM_3D=44x43x19" >>.resol 
    121  
    122 LMD5655 : libioipsl liborchidee lmdz56x55x19 verif      
     102## The main makefile ## 
     103The Makefile is available for different resolutions. Example with LMDZOR_v6.1.10 : 
     104{{{ 
     105LMD5655 : libioipsl xios liborchidee lmdz56x55x19 verif 
    123106        echo "noORCAxLMD5655" >.resol 
    124107        echo "RESOL_ATM_3D=56x55x19" >>.resol 
    125108 
    126 LMD9671 : libioipsl liborchidee lmdz96x71x19 verif      
     109LMD9671 : libioipsl xios liborchidee lmdz96x71x19 verif 
    127110        echo "noORCAxLMD9671" >.resol 
    128111        echo "RESOL_ATM_3D=96x71x19" >>.resol 
    129112 
    130 LMD9695 : libioipsl liborchidee lmdz96x95x19 verif 
     113LMD9695 : libioipsl xios liborchidee lmdz96x95x19 verif 
    131114        echo "noORCAxLMD9695" >.resol 
    132115        echo "RESOL_ATM_3D=96x95x19" >>.resol 
    133  
    134 LMD9695-L39 : libioipsl liborchidee lmdz96x95x39 verif 
     116         
     117LMD9695-L39 : libioipsl xios liborchidee lmdz96x95x39 verif 
    135118        echo "noORCAxLMD9695-L39" >.resol 
    136119        echo "RESOL_ATM_3D=96x95x39" >>.resol 
    137  
    138 LMD144142 : libioipsl liborchidee lmdz144x142x19 verif 
     120         
     121LMD9695-L79 : libioipsl xios liborchidee lmdz96x95x79 verif 
     122        echo "noORCAxLMD9695-L79" >.resol 
     123        echo "RESOL_ATM_3D=96x95x79" >>.resol 
     124         
     125LMD128118-L39 : libioipsl xios liborchidee lmdz128x118x39 verif 
     126        echo "noORCAxLMD128118-L39" >.resol 
     127        echo "RESOL_ATM_3D=128x118x39" >>.resol 
     128         
     129LMD144142 : libioipsl xios liborchidee lmdz144x142x19 verif 
    139130        echo "noORCAxLMD144142" >.resol 
    140131        echo "RESOL_ATM_3D=144x142x19" >>.resol 
    141132 
    142 LMD144142-L39 : libioipsl liborchidee lmdz144x142x39 verif 
     133LMD144142-L39 : libioipsl xios liborchidee lmdz144x142x39 verif 
    143134        echo "noORCAxLMD144142-L39" >.resol 
    144135        echo "RESOL_ATM_3D=144x142x39" >>.resol 
     136 
     137LMD144142-L59 : libioipsl xios liborchidee lmdz144x142x59 verif 
     138        echo "noORCAxLMD144142-L59" >.resol 
     139        echo "RESOL_ATM_3D=144x142x59" >>.resol 
     140 
     141LMD144142-L79 : libioipsl xios liborchidee lmdz144x142x79 verif 
     142        echo "noORCAxLMD144142-L79" >.resol 
     143        echo "RESOL_ATM_3D=144x142x79" >>.resol 
     144         
     145LMD512360-L79 : libioipsl xios liborchidee lmdz512x360x79 verif 
     146        echo "noORCAxLMD512360-L79" >.resol 
     147        echo "RESOL_ATM_3D=512x360x79" >>.resol 
     148         
    145149}}} 
    146150Available resolutions are :  
    147  * LMD4443 
    148  * LMD5655 
    149  * LMD9671 
    150  * LMD9695 
    151  * LMD9695-L39 
    152  * LMD144142 
    153  * LMD144142-L39 
    154  
    155 Another feature of the Makefile is ability to compile any model with the chosen resolution. 
    156  
    157  
    158 For '''''_v5''''' configurations, the default resolution is 96x95x39. 
    159  
    160 # How to compile? # 
    161  
    162 ## Special case at curie for configuration IPSLCM6.0.14-LR and later including  IPSLCM6.1.*-LR ## 
    163 [[NoteBox(warn, If you are working with configuration IPSLCM6.0.14-LR or IPSLCM6.0.15-LR at curie you need to modify your environment, 600px)]] 
    164 At curie, if you work with configuration IPSLCM6.0.14-LR or IPSLCM6.0.15-LR you need to change environment before the compilation. Do following in the terminal were you will compile: 
    165 {{{ 
    166 module purge 
    167 . /ccc/cont003/home/igcmg/igcmg/MachineEnvironment/curie/env_intel17.0.2_curie 
    168 . /ccc/cont003/home/igcmg/igcmg/MachineEnvironment/curie/env_netcdf4.3.3.1_curie 
    169  
    170 }}} 
    171 This is done to change the version of the compiler to a newer one. It can be used for other configurations at curie as well but it is only mandatory for the here specified configurations. During run time, libIGCM will find out with which compiler version has been used and libIGCM will source the corresponding modules.  
    172  
    173  
    174 ## For all configurations ## 
     151* LMD5655 
     152* LMD9671 
     153* LMD9695 
     154* LMD9695-L39 
     155* LMD9695-L79  
     156* LMD128118-L39 
     157* LMD144142 
     158* LMD144142-L39 
     159* LMD144142-L59 
     160* LMD144142-L79 
     161* LMD512360-L79  
     162 
     163## How to compile? ## 
     164 
    175165Once you chose a resolution you can start compiling: 
    176166{{{ 
    177167#!sh 
    178 gmake 
    179 or 
    180168gmake my_resolution 
    181169}}} 
    182170 
    183 For the default resolution gmake is fine.  
    184 Example for LMDZOR_v5: 
    185 {{{ 
    186 #!sh 
    187 cd modipsl/config/LMDZOR_v5 
    188 gmake LMD144142-L39 
    189 }}} 
    190  
    191 The hidden file '''.resol''' is created when compiling was successful. This file contains information about the resolution you have just compiled. This file will be used later when setting up the simulation, in particular to locate the input files.  
     171Example for LMDZOR_v6.1.10: 
     172{{{ 
     173#!sh 
     174cd modipsl/config/LMDZOR_v6 
     175gmake LMD144142-L79 
     176}}} 
     177 
     178An hidden file '''.resol''' is created when compiling was successful. This file contains information about the resolution you have just compiled. This file will be used later when setting up the simulation, in particular to locate the input files.  
    192179[[BR]]Going back to the previous example, the .resol file looks as follows :  
    193180{{{ 
    194 ORCAxLMD144142-L39 
    195 RESOL_ATM_3D=144x142x39 
    196 }}} 
    197  
    198 [[NoteBox(note,Once the file '''.resol''' is created\, you can recompile your configuration using the gmake script without specifying the resolution., 600px)]] 
    199  
    200 For ORCHIDEE_OL, the resolution is not specified during run time. Compiler using only '''gmake'''. The file .resol will not be created. 
     181noORCAxLMD144142-L79 
     182RESOL_ATM_3D=144x142x79 
     183}}} 
     184 
     185[[NoteBox(note,Once the file `.resol` is created\, you can recompile your configuration using the gmake script without specifying the resolution., 600px)]] 
     186 
     187For ORCHIDEE_OL, the resolution is not specified during run time. Compiler using only '''gmake'''. The file `.resol` will not be created. 
    201188# How to change compile options for debugging or optimization of the model? # 
    202189 * You can change your optimization options for IOIPSL models in the AA_make.gdef file. To this end you must find your target machine and change the associated lines. You will have to recreate the Makefile.