| 172 | |
| 173 | ## Syntax in mod.def ## |
| 174 | When launching '''./model config_name''', in mod.def lines starting with |
| 175 | * '''#-H- config_name''' only text information |
| 176 | * '''#-M- config_name''' an email will be sent to the given address only at first extraction at a new machine |
| 177 | * '''#-C- config_name''' code extraction |
| 178 | |
| 179 | The code extraction line has the following syntax : |
| 180 | {{{ |
| 181 | #-C- config_name versionOnServer revisionNumber depotNumber modelName dirInModipsl |
| 182 | }}} |
| 183 | * depotNumber is the reference of the repository address for the given code. The full adress is set in the beginning of mod.def where all repository addresses are listed starting with '''#-S- number'''. |
| 184 | * versionOnServer is directory to extract find on the current depository address |
| 185 | * revisionNumber is the revision to extract. If revisionNumber is HEAD, the lastest revsion on the versionOnServer will be extracted. |
| 186 | * dirInModipsl is the directory in modipsl where the code will be installed |
| 187 | * modelName is the name of the installed directory. The code will be find in modipsl/dirInModipsl/modelName |
| 188 | |
| 189 | As an example see here an extract from mod.def: |
| 190 | {{{ |
| 191 | ... |
| 192 | #-S- 8 svn http://forge.ipsl.jussieu.fr/igcmg/svn |
| 193 | #-S- 9 svn --username inca http://forge.ipsl.jussieu.fr/inca/svn |
| 194 | #-S- 10 svn http://forge.ipsl.jussieu.fr/libigcm/svn |
| 195 | #-S- 11 svn http://svn.lmd.jussieu.fr/LMDZ |
| 196 | #-S- 12 svn http://forge.ipsl.jussieu.fr/ioserver/svn |
| 197 | #-S- 13 svn http://forge.ipsl.jussieu.fr/fcm/svn |
| 198 | #-S- 14 svn svn://forge.ipsl.jussieu.fr/orchidee |
| 199 | ... |
| 200 | ... |
| 201 | #-H- LMDZ_v5 LMDZ (closest version to IPSLCM5_v5) |
| 202 | #-H- LMDZ_v5 This configuration can be used with LMDZ4(LMDZ4/branches/LMDZ4_AR5) or LMDZ5 (LMDZ5/trunk(default), LMDZ5/branches/LMDZ5_AR5) |
| 203 | #-M- LMDZ_v5 Josefine.Ghattas@ipsl.jussieu.fr |
| 204 | #-C- LMDZ_v5 IOIPSL/tags/v2_2_2/src HEAD 8 IOIPSL/src modeles |
| 205 | #-C- LMDZ_v5 LMDZ5/trunk 2076 11 LMDZ modeles |
| 206 | #-C- LMDZ_v5 CONFIG/UNIFORM/v5/LMDZ_v5 HEAD 8 LMDZ_v5 config |
| 207 | #-C- LMDZ_v5 tags/libIGCM_v2.5 HEAD 10 libIGCM . |
| 208 | ... |
| 209 | }}} |
| 210 | By launching ./model LMDZ_v5, you'll install in directory |
| 211 | * modipsl/modeles/IOIPSL/src : the latest revision of IOIPSL/tags/v2_2_2/src from repository http://forge.ipsl.jussieu.fr/igcmg/svn |
| 212 | * modipsl/modeles/LMDZ : revision 2076 of LMDZ5/trunk from repository http://svn.lmd.jussieu.fr/LMDZ |
| 213 | * modipsl/config/LMDZ_v5 : the latest revision of CONFIG/UNIFORM/v5/LMDZ_v5 from repository http://forge.ipsl.jussieu.fr/igcmg/svn |
| 214 | * modipsl/libIGCM : the latest revision of tags/libIGCM_v2.5 from repository http://forge.ipsl.jussieu.fr/libigcm/svn |
| 215 | |
| 216 | |