[3] | 1 | ! |
---|
| 2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/conf_phys.F90,v 1.3 2005/02/07 15:15:31 fairhead Exp $ |
---|
| 3 | ! |
---|
| 4 | ! |
---|
| 5 | ! |
---|
| 6 | |
---|
| 7 | subroutine conf_phys(ok_journe, ok_mensuel, ok_instan, & |
---|
| 8 | & if_ebil) |
---|
| 9 | |
---|
| 10 | use IOIPSL |
---|
| 11 | implicit none |
---|
| 12 | |
---|
[97] | 13 | #include "YOMCST.h" |
---|
| 14 | #include "clesphys.h" |
---|
[3] | 15 | #include "compbl.h" |
---|
| 16 | |
---|
| 17 | ! ok_journe: sorties journalieres |
---|
| 18 | ! ok_mensuel: sorties mensuelles |
---|
| 19 | ! ok_instan: sorties instantanees |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | ! Sortie: |
---|
| 23 | logical :: ok_journe, ok_mensuel, ok_instan |
---|
| 24 | integer :: if_ebil |
---|
| 25 | |
---|
| 26 | ! Local |
---|
| 27 | integer :: numout = 6 |
---|
| 28 | |
---|
[97] | 29 | ! |
---|
| 30 | ! Configuration de la "physique" de LMDZ a l'aide de la fonction |
---|
| 31 | ! GETIN de IOIPSL |
---|
| 32 | ! |
---|
| 33 | ! LF 05/2001 |
---|
| 34 | ! |
---|
| 35 | !--- Ca lit le physiq.def --- |
---|
| 36 | |
---|
| 37 | !******************* parametres anciennement lus dans gcm.def |
---|
| 38 | |
---|
| 39 | !Config Key = cycle_diurne |
---|
| 40 | !Config Desc = Cycle ddiurne |
---|
| 41 | !Config Def = y |
---|
| 42 | !Config Help = Cette option permet d'eteidre le cycle diurne. |
---|
| 43 | !Config Peut etre util pour accelerer le code ! |
---|
| 44 | cycle_diurne = .TRUE. |
---|
| 45 | CALL getin('cycle_diurne',cycle_diurne) |
---|
| 46 | |
---|
| 47 | !Config Key = soil_model |
---|
| 48 | !Config Desc = Modele de sol |
---|
| 49 | !Config Def = y |
---|
| 50 | !Config Help = Choix du modele de sol (Thermique ?) |
---|
| 51 | !Config Option qui pourait un string afin de pouvoir |
---|
| 52 | !Config plus de choix ! Ou meme une liste d'options ! |
---|
| 53 | soil_model = .TRUE. |
---|
| 54 | CALL getin('soil_model',soil_model) |
---|
| 55 | |
---|
| 56 | !Config Key = ok_orodr |
---|
| 57 | !Config Desc = Oro drag |
---|
| 58 | !Config Def = y |
---|
| 59 | !Config Help = GW drag orographie |
---|
| 60 | !Config |
---|
| 61 | ok_orodr = .TRUE. |
---|
| 62 | CALL getin('ok_orodr',ok_orodr) |
---|
| 63 | |
---|
| 64 | !Config Key = ok_orolf |
---|
| 65 | !Config Desc = Oro lift |
---|
| 66 | !Config Def = n |
---|
| 67 | !Config Help = GW lift orographie (pas utilise) |
---|
| 68 | ok_orolf = .TRUE. |
---|
| 69 | CALL getin('ok_orolf', ok_orolf) |
---|
| 70 | |
---|
| 71 | !Config Key = ok_gw_nonoro |
---|
| 72 | !Config Desc = Gravity waves parameterization |
---|
| 73 | !Config Def = n |
---|
| 74 | !Config Help = GW drag non-orographique |
---|
| 75 | ok_gw_nonoro = .FALSE. |
---|
| 76 | CALL getin('ok_gw_nonoro',ok_gw_nonoro) |
---|
| 77 | |
---|
| 78 | !Config Key = nbapp_rad |
---|
| 79 | !Config Desc = Frequence d'appel au rayonnement |
---|
| 80 | !Config Def = 12 |
---|
| 81 | !Config Help = Nombre d'appels des routines de rayonnements |
---|
| 82 | !Config par jour. |
---|
| 83 | nbapp_rad = 12 |
---|
| 84 | CALL getin('nbapp_rad',nbapp_rad) |
---|
| 85 | |
---|
| 86 | !Config Key = nbapp_chim |
---|
| 87 | !Config Desc = Frequence d'appel a la chimie |
---|
| 88 | !Config Def = 1 |
---|
| 89 | !Config Help = Nombre d'appels des routines de chimie |
---|
| 90 | !Config par jour. |
---|
| 91 | nbapp_chim = 1 |
---|
| 92 | CALL getin('nbapp_chim',nbapp_chim) |
---|
| 93 | |
---|
| 94 | !Config Key = iflag_con |
---|
| 95 | !Config Desc = Flag de convection |
---|
| 96 | !Config Def = 0 |
---|
| 97 | !Config Help = Flag pour la convection les options suivantes existent : |
---|
| 98 | !Config 0 : ajsec simple (VENUS, TITAN) |
---|
| 99 | !Config 1 pour LMD, |
---|
| 100 | !Config 2 pour Tiedtke, |
---|
| 101 | !Config 3 pour CCM(NCAR) |
---|
| 102 | iflag_con = 0 |
---|
| 103 | CALL getin('iflag_con',iflag_con) |
---|
| 104 | |
---|
| 105 | !******************* fin parametres anciennement lus dans gcm.def |
---|
| 106 | |
---|
[3] | 107 | !Config Key = OK_journe |
---|
| 108 | !Config Desc = Pour des sorties journalieres |
---|
| 109 | !Config Def = .false. |
---|
| 110 | !Config Help = Pour creer le fichier histday contenant les sorties |
---|
| 111 | ! journalieres |
---|
| 112 | ! |
---|
| 113 | ok_journe = .false. |
---|
| 114 | call getin('OK_journe', ok_journe) |
---|
| 115 | ! |
---|
| 116 | !Config Key = OK_mensuel |
---|
| 117 | !Config Desc = Pour des sorties mensuelles |
---|
| 118 | !Config Def = .true. |
---|
| 119 | !Config Help = Pour creer le fichier histmth contenant les sorties |
---|
| 120 | ! mensuelles |
---|
| 121 | ! |
---|
| 122 | ok_mensuel = .true. |
---|
| 123 | call getin('OK_mensuel', ok_mensuel) |
---|
| 124 | ! |
---|
| 125 | !Config Key = OK_instan |
---|
| 126 | !Config Desc = Pour des sorties instantanees |
---|
| 127 | !Config Def = .false. |
---|
| 128 | !Config Help = Pour creer le fichier histins contenant les sorties |
---|
| 129 | ! instantanees |
---|
| 130 | ! |
---|
| 131 | ok_instan = .false. |
---|
| 132 | call getin('OK_instan', ok_instan) |
---|
| 133 | ! |
---|
[97] | 134 | !Config Key = ecritphy |
---|
| 135 | !Config Desc = Frequence d'ecriture dans histmth et histins |
---|
| 136 | !Config Def = 1 |
---|
| 137 | !Config Help = frequence de l'ecriture du fichier histmth et histins |
---|
| 138 | !Config en jours. |
---|
[3] | 139 | ! |
---|
[1120] | 140 | ecriphy = 1. |
---|
| 141 | CALL getin('ecritphy', ecriphy) |
---|
[97] | 142 | ! |
---|
| 143 | ! |
---|
[3] | 144 | !Config Key = if_ebil |
---|
| 145 | !Config Desc = Niveau de sortie pour les diags bilan d'energie |
---|
| 146 | !Config Def = 0 |
---|
| 147 | !Config Help = |
---|
| 148 | ! |
---|
| 149 | ! |
---|
| 150 | if_ebil = 0 |
---|
| 151 | call getin('if_ebil', if_ebil) |
---|
| 152 | !! |
---|
| 153 | !! Constante solaire & Parametres orbitaux & taux gaz effet de serre BEG |
---|
| 154 | !! |
---|
| 155 | !Config Key = R_ecc |
---|
| 156 | !Config Desc = Excentricite |
---|
| 157 | !Config Def = 0.006787 |
---|
| 158 | !Config Help = |
---|
| 159 | ! |
---|
| 160 | ! VENUS |
---|
| 161 | ! R_ecc = 0.006787 |
---|
[97] | 162 | R_ecc = 0.0 |
---|
| 163 | call getin('R_ecc', R_ecc) |
---|
[3] | 164 | !! |
---|
| 165 | !Config Key = R_peri |
---|
| 166 | !Config Desc = Equinoxe |
---|
| 167 | !Config Def = |
---|
| 168 | !Config Help = |
---|
| 169 | ! |
---|
| 170 | ! VENUS |
---|
[97] | 171 | R_peri = 0. |
---|
| 172 | call getin('R_peri', R_peri) |
---|
[3] | 173 | !! |
---|
| 174 | !Config Key = R_incl |
---|
| 175 | !Config Desc = Inclinaison |
---|
| 176 | !Config Def = |
---|
| 177 | !Config Help = |
---|
| 178 | ! |
---|
| 179 | ! VENUS |
---|
[97] | 180 | R_incl = 0.0 |
---|
| 181 | call getin('R_incl', R_incl) |
---|
[3] | 182 | ! |
---|
| 183 | !Config Key = solaire |
---|
| 184 | !Config Desc = Constante solaire en W/m2 |
---|
| 185 | ! VENUS |
---|
| 186 | !Config Def = 2620. |
---|
| 187 | !Config Help = |
---|
| 188 | ! |
---|
[97] | 189 | solaire = 2620. |
---|
| 190 | call getin('solaire', solaire) |
---|
[3] | 191 | ! |
---|
| 192 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
[1160] | 193 | ! PARAMETER FOR THE TRACERS |
---|
| 194 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
| 195 | ! |
---|
| 196 | !Config Key = tr_scheme |
---|
| 197 | !Config Desc = |
---|
| 198 | !Config Def = 0 |
---|
| 199 | !Config Help = |
---|
| 200 | ! |
---|
| 201 | ! 0 = Nothing is done (passive tracers) |
---|
| 202 | ! 1 = pseudo-chemistry with relaxation toward fixed profile |
---|
| 203 | ! See Marcq&Lebonnois 2013 |
---|
| 204 | ! 2 = surface emission |
---|
| 205 | ! For the moment, inspired from Mars version |
---|
| 206 | ! However, the variable 'source' could be used in physiq |
---|
| 207 | ! so the call to phytrac_emiss could be to initialise it. |
---|
| 208 | ! 3 = Full chemistry |
---|
| 209 | ! To be added by Aurelien |
---|
| 210 | tr_scheme = 0 |
---|
| 211 | call getin('tr_scheme',tr_scheme) |
---|
| 212 | |
---|
| 213 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
[3] | 214 | ! PARAMETER FOR THE PLANETARY BOUNDARY LAYER AND SOIL |
---|
| 215 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
| 216 | ! |
---|
| 217 | !Config Key = iflag_pbl |
---|
| 218 | !Config Desc = |
---|
| 219 | !Config Def = 1 |
---|
| 220 | !Config Help = |
---|
| 221 | ! |
---|
| 222 | ! 2 = calculs Cd et K simples pour VENUS : |
---|
| 223 | ! parametres = z0, lmixmin, ksta (en dur: umin2,ric,cepdu2,karman) |
---|
| 224 | ! 1 = calculs Cd et K issus LMDZ Terre |
---|
| 225 | ! parametres = ksta, ok_kzmin (et plein d'autres en dur...) |
---|
| 226 | ! 6-9 = schema des thermiques Fred |
---|
| 227 | iflag_pbl = 1 |
---|
| 228 | call getin('iflag_pbl',iflag_pbl) |
---|
| 229 | |
---|
| 230 | ! |
---|
| 231 | !Config Key = ksta |
---|
| 232 | !Config Desc = |
---|
| 233 | !Config Def = 1.0e-7 |
---|
| 234 | !Config Help = |
---|
| 235 | ! |
---|
[97] | 236 | ksta = 1.0e-7 |
---|
| 237 | call getin('ksta',ksta) |
---|
[3] | 238 | |
---|
| 239 | ! |
---|
| 240 | !Config Key = z0 |
---|
| 241 | !Config Desc = |
---|
| 242 | !Config Def = 1.0e-2 |
---|
| 243 | !Config Help = |
---|
| 244 | ! |
---|
[97] | 245 | z0 = 1.0e-2 |
---|
| 246 | call getin('z0',z0) |
---|
[3] | 247 | |
---|
| 248 | ! |
---|
| 249 | !Config Key = lmixmin |
---|
| 250 | !Config Desc = |
---|
| 251 | !Config Def = 35. |
---|
| 252 | !Config Help = |
---|
| 253 | ! |
---|
[97] | 254 | lmixmin = 35. |
---|
| 255 | call getin('lmixmin',lmixmin) |
---|
[3] | 256 | |
---|
| 257 | ! |
---|
| 258 | !Config Key = ok_kzmin |
---|
| 259 | !Config Desc = |
---|
| 260 | !Config Def = .false. |
---|
| 261 | !Config Help = |
---|
| 262 | ! |
---|
| 263 | ok_kzmin = .false. |
---|
| 264 | call getin('ok_kzmin',ok_kzmin) |
---|
| 265 | |
---|
| 266 | |
---|
| 267 | !Config Key = iflag_ajs |
---|
| 268 | !Config Desc = |
---|
| 269 | !Config Def = 0 |
---|
| 270 | !Config Help = |
---|
| 271 | ! |
---|
| 272 | iflag_ajs = 1 |
---|
| 273 | call getin('iflag_ajs',iflag_ajs) |
---|
| 274 | |
---|
| 275 | ! |
---|
| 276 | !Config Key = inertie |
---|
| 277 | !Config Desc = |
---|
[97] | 278 | !Config Def = 2000. |
---|
[3] | 279 | !Config Help = |
---|
| 280 | ! |
---|
[97] | 281 | inertie = 2000. |
---|
| 282 | call getin('inertie',inertie) |
---|
[3] | 283 | ! |
---|
| 284 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
| 285 | ! PARAMETER FOR THE OUTPUT LEVELS |
---|
| 286 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
---|
| 287 | ! |
---|
| 288 | !Config Key = lev_histhf |
---|
| 289 | !Config Desc = |
---|
| 290 | !Config Def = 0 |
---|
| 291 | !Config Help = |
---|
| 292 | ! |
---|
| 293 | lev_histhf = 0 |
---|
| 294 | call getin('lev_histhf',lev_histhf) |
---|
| 295 | |
---|
| 296 | ! |
---|
| 297 | !Config Key = lev_histday |
---|
| 298 | !Config Desc = |
---|
| 299 | !Config Def = 1 |
---|
| 300 | !Config Help = |
---|
| 301 | ! |
---|
| 302 | lev_histday = 1 |
---|
| 303 | call getin('lev_histday',lev_histday) |
---|
| 304 | |
---|
| 305 | ! |
---|
| 306 | !Config Key = lev_histmth |
---|
| 307 | !Config Desc = |
---|
| 308 | !Config Def = 2 |
---|
| 309 | !Config Help = |
---|
| 310 | ! |
---|
| 311 | lev_histmth = 2 |
---|
| 312 | call getin('lev_histmth',lev_histmth) |
---|
| 313 | |
---|
| 314 | ! |
---|
| 315 | ! |
---|
| 316 | !Config Key = |
---|
| 317 | !Config Desc = |
---|
| 318 | !Config Def = |
---|
| 319 | !Config Help = |
---|
| 320 | ! |
---|
| 321 | ! = |
---|
| 322 | ! call getin('',) |
---|
| 323 | ! |
---|
| 324 | ! |
---|
| 325 | ! |
---|
| 326 | ! |
---|
| 327 | |
---|
| 328 | write(numout,*)' ##############################################' |
---|
| 329 | write(numout,*)' Configuration des parametres de la physique: ' |
---|
[97] | 330 | write(numout,*)' cycle_diurne = ', cycle_diurne |
---|
| 331 | write(numout,*)' soil_model = ', soil_model |
---|
| 332 | write(numout,*)' ok_orodr = ', ok_orodr |
---|
| 333 | write(numout,*)' ok_orolf = ', ok_orolf |
---|
| 334 | write(numout,*)' ok_gw_nonoro = ', ok_gw_nonoro |
---|
| 335 | write(numout,*)' nbapp_rad = ', nbapp_rad |
---|
| 336 | write(numout,*)' nbapp_chim = ', nbapp_chim |
---|
| 337 | write(numout,*)' iflag_con = ', iflag_con |
---|
[3] | 338 | write(numout,*)' Sortie journaliere = ', ok_journe |
---|
| 339 | write(numout,*)' Sortie mensuelle = ', ok_mensuel |
---|
| 340 | write(numout,*)' Sortie instantanee = ', ok_instan |
---|
[1120] | 341 | write(numout,*)' frequence sorties = ', ecriphy |
---|
[3] | 342 | write(numout,*)' Sortie bilan d''energie, if_ebil =', if_ebil |
---|
| 343 | write(numout,*)' Excentricite = ',R_ecc |
---|
| 344 | write(numout,*)' Equinoxe = ',R_peri |
---|
| 345 | write(numout,*)' Inclinaison =',R_incl |
---|
[1160] | 346 | write(numout,*)' tr_scheme = ', tr_scheme |
---|
[3] | 347 | write(numout,*)' iflag_pbl = ', iflag_pbl |
---|
| 348 | write(numout,*)' z0 = ',z0 |
---|
| 349 | write(numout,*)' lmixmin = ',lmixmin |
---|
| 350 | write(numout,*)' ksta = ',ksta |
---|
| 351 | write(numout,*)' ok_kzmin = ',ok_kzmin |
---|
| 352 | write(numout,*)' inertie = ', inertie |
---|
| 353 | write(numout,*)' iflag_ajs = ', iflag_ajs |
---|
| 354 | write(numout,*)' lev_histhf = ',lev_histhf |
---|
| 355 | write(numout,*)' lev_histday = ',lev_histday |
---|
| 356 | write(numout,*)' lev_histmth = ',lev_histmth |
---|
| 357 | |
---|
| 358 | return |
---|
| 359 | |
---|
| 360 | end subroutine conf_phys |
---|
| 361 | |
---|