| 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 | |
|---|
| 13 | #include "YOMCST.h" |
|---|
| 14 | #include "clesphys.h" |
|---|
| 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 | |
|---|
| 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 | |
|---|
| 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 | ! |
|---|
| 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. |
|---|
| 139 | ! |
|---|
| 140 | ecritphy = 1. |
|---|
| 141 | CALL getin('ecritphy', ecritphy) |
|---|
| 142 | ! |
|---|
| 143 | ! |
|---|
| 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 |
|---|
| 162 | R_ecc = 0.0 |
|---|
| 163 | call getin('R_ecc', R_ecc) |
|---|
| 164 | !! |
|---|
| 165 | !Config Key = R_peri |
|---|
| 166 | !Config Desc = Equinoxe |
|---|
| 167 | !Config Def = |
|---|
| 168 | !Config Help = |
|---|
| 169 | ! |
|---|
| 170 | ! VENUS |
|---|
| 171 | R_peri = 0. |
|---|
| 172 | call getin('R_peri', R_peri) |
|---|
| 173 | !! |
|---|
| 174 | !Config Key = R_incl |
|---|
| 175 | !Config Desc = Inclinaison |
|---|
| 176 | !Config Def = |
|---|
| 177 | !Config Help = |
|---|
| 178 | ! |
|---|
| 179 | ! VENUS |
|---|
| 180 | R_incl = 0.0 |
|---|
| 181 | call getin('R_incl', R_incl) |
|---|
| 182 | ! |
|---|
| 183 | !Config Key = solaire |
|---|
| 184 | !Config Desc = Constante solaire en W/m2 |
|---|
| 185 | ! VENUS |
|---|
| 186 | !Config Def = 2620. |
|---|
| 187 | !Config Help = |
|---|
| 188 | ! |
|---|
| 189 | solaire = 2620. |
|---|
| 190 | call getin('solaire', solaire) |
|---|
| 191 | ! |
|---|
| 192 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|---|
| 193 | ! PARAMETER FOR THE PLANETARY BOUNDARY LAYER AND SOIL |
|---|
| 194 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|---|
| 195 | ! |
|---|
| 196 | !Config Key = iflag_pbl |
|---|
| 197 | !Config Desc = |
|---|
| 198 | !Config Def = 1 |
|---|
| 199 | !Config Help = |
|---|
| 200 | ! |
|---|
| 201 | ! 2 = calculs Cd et K simples pour VENUS : |
|---|
| 202 | ! parametres = z0, lmixmin, ksta (en dur: umin2,ric,cepdu2,karman) |
|---|
| 203 | ! 1 = calculs Cd et K issus LMDZ Terre |
|---|
| 204 | ! parametres = ksta, ok_kzmin (et plein d'autres en dur...) |
|---|
| 205 | ! 6-9 = schema des thermiques Fred |
|---|
| 206 | iflag_pbl = 1 |
|---|
| 207 | call getin('iflag_pbl',iflag_pbl) |
|---|
| 208 | |
|---|
| 209 | ! |
|---|
| 210 | !Config Key = ksta |
|---|
| 211 | !Config Desc = |
|---|
| 212 | !Config Def = 1.0e-7 |
|---|
| 213 | !Config Help = |
|---|
| 214 | ! |
|---|
| 215 | ksta = 1.0e-7 |
|---|
| 216 | call getin('ksta',ksta) |
|---|
| 217 | |
|---|
| 218 | ! |
|---|
| 219 | !Config Key = z0 |
|---|
| 220 | !Config Desc = |
|---|
| 221 | !Config Def = 1.0e-2 |
|---|
| 222 | !Config Help = |
|---|
| 223 | ! |
|---|
| 224 | z0 = 1.0e-2 |
|---|
| 225 | call getin('z0',z0) |
|---|
| 226 | |
|---|
| 227 | ! |
|---|
| 228 | !Config Key = lmixmin |
|---|
| 229 | !Config Desc = |
|---|
| 230 | !Config Def = 35. |
|---|
| 231 | !Config Help = |
|---|
| 232 | ! |
|---|
| 233 | lmixmin = 35. |
|---|
| 234 | call getin('lmixmin',lmixmin) |
|---|
| 235 | |
|---|
| 236 | ! |
|---|
| 237 | !Config Key = ok_kzmin |
|---|
| 238 | !Config Desc = |
|---|
| 239 | !Config Def = .false. |
|---|
| 240 | !Config Help = |
|---|
| 241 | ! |
|---|
| 242 | ok_kzmin = .false. |
|---|
| 243 | call getin('ok_kzmin',ok_kzmin) |
|---|
| 244 | |
|---|
| 245 | |
|---|
| 246 | !Config Key = iflag_ajs |
|---|
| 247 | !Config Desc = |
|---|
| 248 | !Config Def = 0 |
|---|
| 249 | !Config Help = |
|---|
| 250 | ! |
|---|
| 251 | iflag_ajs = 1 |
|---|
| 252 | call getin('iflag_ajs',iflag_ajs) |
|---|
| 253 | |
|---|
| 254 | ! |
|---|
| 255 | !Config Key = inertie |
|---|
| 256 | !Config Desc = |
|---|
| 257 | !Config Def = 2000. |
|---|
| 258 | !Config Help = |
|---|
| 259 | ! |
|---|
| 260 | inertie = 2000. |
|---|
| 261 | call getin('inertie',inertie) |
|---|
| 262 | ! |
|---|
| 263 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|---|
| 264 | ! PARAMETER FOR THE OUTPUT LEVELS |
|---|
| 265 | !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
|---|
| 266 | ! |
|---|
| 267 | !Config Key = lev_histhf |
|---|
| 268 | !Config Desc = |
|---|
| 269 | !Config Def = 0 |
|---|
| 270 | !Config Help = |
|---|
| 271 | ! |
|---|
| 272 | lev_histhf = 0 |
|---|
| 273 | call getin('lev_histhf',lev_histhf) |
|---|
| 274 | |
|---|
| 275 | ! |
|---|
| 276 | !Config Key = lev_histday |
|---|
| 277 | !Config Desc = |
|---|
| 278 | !Config Def = 1 |
|---|
| 279 | !Config Help = |
|---|
| 280 | ! |
|---|
| 281 | lev_histday = 1 |
|---|
| 282 | call getin('lev_histday',lev_histday) |
|---|
| 283 | |
|---|
| 284 | ! |
|---|
| 285 | !Config Key = lev_histmth |
|---|
| 286 | !Config Desc = |
|---|
| 287 | !Config Def = 2 |
|---|
| 288 | !Config Help = |
|---|
| 289 | ! |
|---|
| 290 | lev_histmth = 2 |
|---|
| 291 | call getin('lev_histmth',lev_histmth) |
|---|
| 292 | |
|---|
| 293 | ! |
|---|
| 294 | ! |
|---|
| 295 | !Config Key = |
|---|
| 296 | !Config Desc = |
|---|
| 297 | !Config Def = |
|---|
| 298 | !Config Help = |
|---|
| 299 | ! |
|---|
| 300 | ! = |
|---|
| 301 | ! call getin('',) |
|---|
| 302 | ! |
|---|
| 303 | ! |
|---|
| 304 | ! |
|---|
| 305 | ! |
|---|
| 306 | |
|---|
| 307 | write(numout,*)' ##############################################' |
|---|
| 308 | write(numout,*)' Configuration des parametres de la physique: ' |
|---|
| 309 | write(numout,*)' cycle_diurne = ', cycle_diurne |
|---|
| 310 | write(numout,*)' soil_model = ', soil_model |
|---|
| 311 | write(numout,*)' ok_orodr = ', ok_orodr |
|---|
| 312 | write(numout,*)' ok_orolf = ', ok_orolf |
|---|
| 313 | write(numout,*)' ok_gw_nonoro = ', ok_gw_nonoro |
|---|
| 314 | write(numout,*)' nbapp_rad = ', nbapp_rad |
|---|
| 315 | write(numout,*)' nbapp_chim = ', nbapp_chim |
|---|
| 316 | write(numout,*)' iflag_con = ', iflag_con |
|---|
| 317 | write(numout,*)' Sortie journaliere = ', ok_journe |
|---|
| 318 | write(numout,*)' Sortie mensuelle = ', ok_mensuel |
|---|
| 319 | write(numout,*)' Sortie instantanee = ', ok_instan |
|---|
| 320 | write(numout,*)' frequence sorties = ', ecritphy |
|---|
| 321 | write(numout,*)' Sortie bilan d''energie, if_ebil =', if_ebil |
|---|
| 322 | write(numout,*)' Excentricite = ',R_ecc |
|---|
| 323 | write(numout,*)' Equinoxe = ',R_peri |
|---|
| 324 | write(numout,*)' Inclinaison =',R_incl |
|---|
| 325 | write(numout,*)' iflag_pbl = ', iflag_pbl |
|---|
| 326 | write(numout,*)' z0 = ',z0 |
|---|
| 327 | write(numout,*)' lmixmin = ',lmixmin |
|---|
| 328 | write(numout,*)' ksta = ',ksta |
|---|
| 329 | write(numout,*)' ok_kzmin = ',ok_kzmin |
|---|
| 330 | write(numout,*)' inertie = ', inertie |
|---|
| 331 | write(numout,*)' iflag_ajs = ', iflag_ajs |
|---|
| 332 | write(numout,*)' lev_histhf = ',lev_histhf |
|---|
| 333 | write(numout,*)' lev_histday = ',lev_histday |
|---|
| 334 | write(numout,*)' lev_histmth = ',lev_histmth |
|---|
| 335 | |
|---|
| 336 | return |
|---|
| 337 | |
|---|
| 338 | end subroutine conf_phys |
|---|
| 339 | |
|---|