| 1 | {{{ |
| 2 | #!html |
| 3 | <h1> Download </h1> |
| 4 | }}} |
| 5 | ---- |
| 6 | [[NoteBox(note,Download a model configuration to a specific machine using the '''modipsl''' tool., 600px)]] |
| 7 | |
| 8 | [[TOC(heading=Table of contents,depth=1,inline)]] |
| 9 | [[PageOutline(1,Table of contents,pullout)]] |
| 10 | ---- |
| 11 | |
| 12 | # Description # |
| 13 | |
| 14 | '''modipsl''' is an suite of scripts which allow you to |
| 15 | * obtain a model configuration from a computing center; |
| 16 | * to [wiki:DocDcompil compile] the model components of a model configuration on a specific machine. |
| 17 | |
| 18 | '''modipsl''' is also the architecture hosting the models and tools of a chosen model configuration. modipsl is developed at IPSL. |
| 19 | |
| 20 | # Downloading modipsl # |
| 21 | |
| 22 | {{{ |
| 23 | #!sh |
| 24 | svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl |
| 25 | }}} |
| 26 | |
| 27 | To avoid typing this command line for every new modipsl retrieval, we recommend to create an alias : |
| 28 | |
| 29 | {{{ |
| 30 | #!sh |
| 31 | alias svn_ano='svn co http://forge.ipsl.jussieu.fr/igcmg/svn/modipsl/trunk modipsl' |
| 32 | }}} |
| 33 | |
| 34 | The retrieval command then becomes |
| 35 | {{{ |
| 36 | #!sh |
| 37 | svn_ano |
| 38 | }}} |
| 39 | |
| 40 | To learn more about SVN and other useful scripts, [wiki:DocKexterntoolsAsvnbasic click here]. |
| 41 | |
| 42 | # How to use modipsl # |
| 43 | ## The modipsl directories ## |
| 44 | After downloading and unpacking '''modipsl''', you should have the following directory structure: |
| 45 | |
| 46 | * '''util''' contains information and scripts necessary to setup the different versions of the IPSL models; |
| 47 | |
| 48 | * '''doc''' contains the CECILL's license (license of the IPSL models) |
| 49 | |
| 50 | |
| 51 | modipsl also contains the following directories (empty in the beginning) : |
| 52 | |
| 53 | * '''modeles''': directories containing the model source codes (filled once the model configuration has been downloaded and unpacked) |
| 54 | |
| 55 | * '''config''': directories containing the experiment directories (filled once the model configuration has been downloaded and unpacked) |
| 56 | |
| 57 | * '''bin''': directory containing the executables (filled after compiling) |
| 58 | |
| 59 | * '''lib''' and '''tmp''': directories containing temporary files created during the compilation. Those directories will not be used by all models. |
| 60 | |
| 61 | |
| 62 | '''Main scripts in the directory ''util'''''[[BR]] |
| 63 | * '''`model`''' --> Downloading script for available model configurations. This script also provides information on the available model configurations. |
| 64 | |
| 65 | * '''`mod.def`''' --> File containing the information on the available model configurations : components, tags, svn servers |
| 66 | |
| 67 | * '''`ins_make`''' --> Makefiles for the computing machine |
| 68 | |
| 69 | * '''`ins_job`''' --> Scripts for running jobs on the computing machine |
| 70 | |
| 71 | ## Available configurations via modipsl ## |
| 72 | Using '''modipsl''' will give you access to a large number of model configurations, each of them uses one or more IPSL models. |
| 73 | To list the available model configurations, use the following script: |
| 74 | {{{ |
| 75 | #!sh |
| 76 | cd modipsl/util |
| 77 | ./model -h |
| 78 | }}} |
| 79 | |
| 80 | To obtain information on the models used (tags, versions,...) in a specific configuration, use the following script: |
| 81 | {{{ |
| 82 | #!sh |
| 83 | ./model -h nom_de_la_config |
| 84 | }}} |
| 85 | |
| 86 | Example with LMDZOR_v5 : |
| 87 | {{{ |
| 88 | #!sh |
| 89 | ./model -h LMDZOR_v5 |
| 90 | |
| 91 | model : LMDZOR_v5 |
| 92 | |
| 93 | LMDZ and ORCHIDEE (closest version to IPSLCM5_v5) |
| 94 | This configuration can be used with LMDZ4(LMDZ4/branches/LMDZ4_AR5) or LMDZ5 (LMDZ5/trunk(default), LMDZ5/branches/LMDZ5_AR5). |
| 95 | |
| 96 | email address of the model manager: Josefine.Ghattas@ipsl.jussieu.fr |
| 97 | |
| 98 | Component 1 : IOIPSL/tags/v2_2_1/src |
| 99 | Tag 1 : HEAD |
| 100 | System 1 : svn |
| 101 | Server 1 : http://forge.ipsl.jussieu.fr/igcmg/svn |
| 102 | Directory 1 : IOIPSL/src |
| 103 | Local Dir 1 : modeles |
| 104 | Component 2 : tags/ORCHIDEE_1_9_5/ORCHIDEE |
| 105 | Tag 2 : HEAD |
| 106 | System 2 : svn |
| 107 | Server 2 : svn://forge.ipsl.jussieu.fr/orchidee |
| 108 | Directory 2 : ORCHIDEE |
| 109 | Local Dir 2 : modeles |
| 110 | Component 3 : LMDZ5/trunk |
| 111 | Tag 3 : 1628 |
| 112 | System 3 : svn |
| 113 | Server 3 : http://svn.lmd.jussieu.fr/LMDZ |
| 114 | Directory 3 : LMDZ |
| 115 | Local Dir 3 : modeles |
| 116 | Component 4 : CONFIG/UNIFORM/v5/LMDZOR_v5 |
| 117 | Tag 4 : HEAD |
| 118 | System 4 : svn |
| 119 | Server 4 : http://forge.ipsl.jussieu.fr/igcmg/svn |
| 120 | Directory 4 : LMDZOR_v5 |
| 121 | Local Dir 4 : config |
| 122 | Component 5 : tags/libIGCM_v2.0_rc3 |
| 123 | Tag 5 : HEAD |
| 124 | System 5 : svn |
| 125 | Server 5 : http://forge.ipsl.jussieu.fr/libigcm/svn |
| 126 | Directory 5 : libIGCM |
| 127 | Local Dir 5 : . |
| 128 | }}} |
| 129 | |
| 130 | |
| 131 | If the requested model configuration does not exist : |
| 132 | {{{ |
| 133 | #!sh |
| 134 | ./model -h Ornithorynque |
| 135 | Model Ornithorynque unknown |
| 136 | Try "model -h" |
| 137 | }}} |
| 138 | |
| 139 | ## How to download and use a selected model configuration ## |
| 140 | |
| 141 | Downloading is the recovery of the source codes of the model components of a specific model configuration from different SVN (and CVS) servers. |
| 142 | The download can be done with this script: |
| 143 | {{{ |
| 144 | #!sh |
| 145 | ./model nom_de_la_config |
| 146 | }}} |
| 147 | |
| 148 | If you want to access these servers you must request a login and a password. To do so, you must contact the person in charge of the model configuration (see above the list of model managers; their email addresses is also available via the command '''model -h''') [[BR]] |
| 149 | |
| 150 | Example : |
| 151 | {{{ |
| 152 | #!sh |
| 153 | cd modipsl/util |
| 154 | # see all the available configurations |
| 155 | ./model -h |
| 156 | # extract the LMDZOR_v5 configuration |
| 157 | ./model LMDZOR_v5 |
| 158 | }}} |
| 159 | |
| 160 | The source codes of the downloaded models are in the '''modipsl/modeles/''' directory. |
| 161 | |
| 162 | For the previous example you will obtain the following directories : |
| 163 | * modipsl/modeles/IOIPSL |
| 164 | * modipsl/modeles/LMDZ |
| 165 | * modipsl/modeles/ORCHIDEE |
| 166 | |
| 167 | '''modipsl''' also installs a model '''configuration'''. It is installed in the directory '''modipsl/config/''' (here modipsl/config/LMDZOR_v5). [[BR]] |
| 168 | Each model will be compiled and the simulation will be run in the '''`config`''' directory. |
| 169 | |
| 170 | The log files of the installation are stored in the `modipsl/util/log` file. |
| 171 | |
| 172 | ## Change a model version ## |
| 173 | By default the available model configurations use specific model versions. But different versions of a given model can be used with a specific configuration. This is the case for the LMDZ version in the "_v5" configurations. You might want to use the latest version on an LMDZ4/branches/LMDZ4_AR5 branch (used for CMIP5 simulations) or you might want to use the new physics scheme of LMDZ and therefore you will need a more recent version of LMDZ5/trunk. To find out which model version to use, please contact the model development team directly. [[BR]] |
| 174 | |
| 175 | If you already know which model version to use, you just have to change the section about the model configuration you selected in '''modipsl/util/mod.def'''. [[BR]] |
| 176 | |
| 177 | For example, to extract the LMDZOR_v5 configuration with the latest revision (HEAD) of LMDZ4_AR5, change '''mod.def''' to obtain : |
| 178 | {{{ |
| 179 | #-C- LMDZOR_v5 LMDZ4/branches/LMDZ4_AR5 HEAD 11 LMDZ modeles |
| 180 | }}} |
| 181 | or for LMDZ5/trunk revision 1628 : |
| 182 | {{{ |
| 183 | #-C- LMDZOR_v5 LMDZ5/trunk 1628 11 LMDZ modeles |
| 184 | }}} |
| 185 | |
| 186 | # Special cases # |
| 187 | |
| 188 | * '''Reprobus''' : this model has restricted access via svn+ssh. Click [wiki:DocImodelEreprobus here] for more information. |
| 189 | * '''Orchidee''' : |
| 190 | * To use the latest version (more recent than the default version): [wiki:DocHconfigHorchideeol click here] |
| 191 | * Install LMDZOR and ORCHIDEE_OL with the same modipsl : [wiki:DocHconfigBlmdzor#HowtoretrieveORCHIDEE_OLinaLMDZORconfiguration click here] |
| 192 | |
| 193 | ---- |