| [219] | 1 | ! |
|---|
| 2 | ! $Header$ |
|---|
| 3 | ! |
|---|
| 4 | |
|---|
| [373] | 5 | subroutine conf_phys(ocean, ok_veget, ok_journe, ok_mensuel, ok_instan, & |
|---|
| 6 | & fact_cldcon, facttemps,ok_newmicro,iflag_cldcon, & |
|---|
| [395] | 7 | & ratqsbas,ratqshaut,if_ebil) |
|---|
| [219] | 8 | |
|---|
| [235] | 9 | use IOIPSL |
|---|
| 10 | implicit none |
|---|
| 11 | |
|---|
| [373] | 12 | #include "conema3.h" |
|---|
| 13 | #include "fisrtilp.inc" |
|---|
| [386] | 14 | #include "nuage.h" |
|---|
| [433] | 15 | #include "YOMCST.inc" |
|---|
| 16 | !IM : on inclut/initialise les taux de CH4, N2O, CFC11 et CFC12 |
|---|
| 17 | include "clesphys.inc" |
|---|
| [219] | 18 | ! |
|---|
| [241] | 19 | ! Configuration de la "physique" de LMDZ a l'aide de la fonction |
|---|
| [219] | 20 | ! GETIN de IOIPSL |
|---|
| 21 | ! |
|---|
| 22 | ! LF 05/2001 |
|---|
| 23 | ! |
|---|
| 24 | |
|---|
| 25 | ! |
|---|
| 26 | ! ocean: type d'ocean (force, slab, couple) |
|---|
| 27 | ! ok_veget: type de modele de vegetation |
|---|
| 28 | ! ok_journe: sorties journalieres |
|---|
| 29 | ! ok_mensuel: sorties mensuelles |
|---|
| 30 | ! ok_instan: sorties instantanees |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | ! Sortie: |
|---|
| 35 | character (len = 6) :: ocean |
|---|
| [373] | 36 | logical :: ok_veget, ok_newmicro |
|---|
| [219] | 37 | logical :: ok_journe, ok_mensuel, ok_instan |
|---|
| [373] | 38 | real :: fact_cldcon, facttemps,ratqsbas,ratqshaut |
|---|
| [395] | 39 | integer :: iflag_cldcon, if_ebil |
|---|
| [223] | 40 | ! Local |
|---|
| 41 | integer :: numout = 6 |
|---|
| [219] | 42 | |
|---|
| 43 | ! |
|---|
| 44 | ! |
|---|
| 45 | ! |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | !Config Key = OCEAN |
|---|
| 49 | !Config Desc = Type d'ocean |
|---|
| 50 | !Config Def = force |
|---|
| 51 | !Config Help = Type d'ocean utilise: force, slab,couple |
|---|
| 52 | ! |
|---|
| 53 | ocean = 'force ' |
|---|
| 54 | call getin('OCEAN', ocean) |
|---|
| 55 | ! |
|---|
| 56 | !Config Key = VEGET |
|---|
| 57 | !Config Desc = Type de modele de vegetation |
|---|
| 58 | !Config Def = .false. |
|---|
| 59 | !Config Help = Type de modele de vegetation utilise |
|---|
| 60 | ! |
|---|
| 61 | ok_veget = .false. |
|---|
| 62 | call getin('VEGET', ok_veget) |
|---|
| 63 | ! |
|---|
| 64 | !Config Key = OK_journe |
|---|
| 65 | !Config Desc = Pour des sorties journalieres |
|---|
| 66 | !Config Def = .false. |
|---|
| 67 | !Config Help = Pour creer le fichier histday contenant les sorties |
|---|
| 68 | ! journalieres |
|---|
| 69 | ! |
|---|
| 70 | ok_journe = .false. |
|---|
| 71 | call getin('OK_journe', ok_journe) |
|---|
| 72 | ! |
|---|
| 73 | !Config Key = OK_mensuel |
|---|
| 74 | !Config Desc = Pour des sorties mensuelles |
|---|
| 75 | !Config Def = .true. |
|---|
| 76 | !Config Help = Pour creer le fichier histmth contenant les sorties |
|---|
| 77 | ! mensuelles |
|---|
| 78 | ! |
|---|
| 79 | ok_mensuel = .true. |
|---|
| 80 | call getin('OK_mensuel', ok_mensuel) |
|---|
| 81 | ! |
|---|
| 82 | !Config Key = OK_instan |
|---|
| 83 | !Config Desc = Pour des sorties instantanees |
|---|
| 84 | !Config Def = .false. |
|---|
| 85 | !Config Help = Pour creer le fichier histins contenant les sorties |
|---|
| 86 | ! instantanees |
|---|
| 87 | ! |
|---|
| 88 | ok_instan = .false. |
|---|
| 89 | call getin('OK_instan', ok_instan) |
|---|
| [395] | 90 | ! |
|---|
| 91 | !Config Key = if_ebil |
|---|
| 92 | !Config Desc = Niveau de sortie pour les diags bilan d'energie |
|---|
| 93 | !Config Def = 0 |
|---|
| 94 | !Config Help = |
|---|
| 95 | ! |
|---|
| 96 | ! |
|---|
| 97 | if_ebil = 0 |
|---|
| 98 | call getin('if_ebil', if_ebil) |
|---|
| [373] | 99 | !! |
|---|
| [433] | 100 | !! Constante solaire & Parametres orbitaux & taux gaz effet de serre BEG |
|---|
| 101 | !! |
|---|
| 102 | !Config Key = R_ecc |
|---|
| 103 | !Config Desc = Excentricite |
|---|
| 104 | !Config Def = 0.016715 |
|---|
| 105 | !Config Help = |
|---|
| 106 | ! |
|---|
| 107 | !valeur AMIP II |
|---|
| 108 | R_ecc = 0.016715 |
|---|
| 109 | call getin('R_ecc', R_ecc) |
|---|
| 110 | !! |
|---|
| 111 | !Config Key = R_peri |
|---|
| 112 | !Config Desc = Equinoxe |
|---|
| 113 | !Config Def = |
|---|
| 114 | !Config Help = |
|---|
| 115 | ! |
|---|
| 116 | ! |
|---|
| 117 | !valeur AMIP II |
|---|
| 118 | R_peri = 102.7 |
|---|
| 119 | call getin('R_peri', R_peri) |
|---|
| 120 | !! |
|---|
| 121 | !Config Key = R_incl |
|---|
| 122 | !Config Desc = Inclinaison |
|---|
| 123 | !Config Def = |
|---|
| 124 | !Config Help = |
|---|
| 125 | ! |
|---|
| 126 | ! |
|---|
| 127 | !valeur AMIP II |
|---|
| 128 | R_incl = 23.441 |
|---|
| 129 | call getin('R_incl', R_incl) |
|---|
| 130 | !! |
|---|
| 131 | !Config Key = solaire |
|---|
| 132 | !Config Desc = Constante solaire en W/m2 |
|---|
| 133 | !Config Def = 1365. |
|---|
| 134 | !Config Help = |
|---|
| 135 | ! |
|---|
| 136 | ! |
|---|
| 137 | !valeur AMIP II |
|---|
| 138 | solaire = 1365. |
|---|
| 139 | call getin('solaire', solaire) |
|---|
| 140 | !! |
|---|
| 141 | !Config Key = co2_ppm |
|---|
| 142 | !Config Desc = concentration du gaz carbonique en ppmv |
|---|
| 143 | !Config Def = 348. |
|---|
| 144 | !Config Help = |
|---|
| 145 | ! |
|---|
| 146 | ! |
|---|
| 147 | !valeur AMIP II |
|---|
| 148 | co2_ppm = 348. |
|---|
| 149 | call getin('co2_ppm', co2_ppm) |
|---|
| 150 | !! |
|---|
| 151 | !Config Key = RCO2 |
|---|
| 152 | !Config Desc = Concentration du CO2 |
|---|
| 153 | !Config Def = co2_ppm * 1.0e-06 * 44.011/28.97 |
|---|
| 154 | !Config Def = 348. * 1.0e-06 * 44.011/28.97 |
|---|
| 155 | !Config Help = |
|---|
| 156 | ! |
|---|
| 157 | ! RCO2 = 5.286789092164308E-04 |
|---|
| 158 | !ancienne valeur |
|---|
| 159 | RCO2 = co2_ppm * 1.0e-06 * 44.011/28.97 ! pour co2_ppm=348. |
|---|
| 160 | |
|---|
| 161 | call getin('RCO2', RCO2) |
|---|
| 162 | !! |
|---|
| 163 | !Config Key = RCH4 |
|---|
| 164 | !Config Desc = Concentration du CH4 |
|---|
| 165 | !Config Def = 1.65E-06* 16.043/28.97 |
|---|
| 166 | !Config Help = |
|---|
| 167 | ! |
|---|
| 168 | ! |
|---|
| 169 | !valeur AMIP II |
|---|
| 170 | RCH4 = 1.65E-06* 16.043/28.97 |
|---|
| 171 | ! RCH4 = 9.137366240938903E-07 |
|---|
| 172 | ! |
|---|
| 173 | !ancienne valeur |
|---|
| 174 | ! RCH4 = 1.72E-06* 16.043/28.97 |
|---|
| 175 | call getin('RCH4', RCH4) |
|---|
| 176 | !! |
|---|
| 177 | !Config Key = RN2O |
|---|
| 178 | !Config Desc = Concentration du N2O |
|---|
| 179 | !Config Def = 306.E-09* 44.013/28.97 |
|---|
| 180 | !Config Help = |
|---|
| 181 | ! |
|---|
| 182 | ! |
|---|
| 183 | !valeur AMIP II |
|---|
| 184 | RN2O = 306.E-09* 44.013/28.97 |
|---|
| 185 | ! RN2O = 4.648939592682085E-07 |
|---|
| 186 | ! |
|---|
| 187 | !ancienne valeur |
|---|
| 188 | ! RN2O = 310.E-09* 44.013/28.97 |
|---|
| 189 | call getin('RN2O', RN2O) |
|---|
| 190 | !! |
|---|
| 191 | !Config Key = RCFC11 |
|---|
| 192 | !Config Desc = Concentration du CFC11 |
|---|
| 193 | !Config Def = 280.E-12* 137.3686/28.97 |
|---|
| 194 | !Config Help = |
|---|
| 195 | ! |
|---|
| 196 | ! |
|---|
| 197 | RCFC11 = 280.E-12* 137.3686/28.97 |
|---|
| 198 | ! RCFC11 = 1.327690990680013E-09 |
|---|
| 199 | call getin('RCFC11', RCFC11) |
|---|
| 200 | !! |
|---|
| 201 | !Config Key = RCFC12 |
|---|
| 202 | !Config Desc = Concentration du CFC12 |
|---|
| 203 | !Config Def = 484.E-12* 120.9140/28.97 |
|---|
| 204 | !Config Help = |
|---|
| 205 | ! |
|---|
| 206 | ! |
|---|
| 207 | RCFC12 = 484.E-12* 120.9140/28.97 |
|---|
| 208 | ! RCFC12 = 2.020102726958923E-09 |
|---|
| 209 | call getin('RCFC12', RCFC12) |
|---|
| 210 | !! |
|---|
| 211 | !! Constante solaire & Parametres orbitaux & taux gaz effet de serre END |
|---|
| 212 | !! |
|---|
| [373] | 213 | !! KE |
|---|
| 214 | ! |
|---|
| 215 | !Config Key = epmax |
|---|
| 216 | !Config Desc = Efficacite precip |
|---|
| 217 | !Config Def = 0.993 |
|---|
| 218 | !Config Help = |
|---|
| 219 | ! |
|---|
| 220 | epmax = .993 |
|---|
| 221 | call getin('epmax', epmax) |
|---|
| 222 | ! |
|---|
| 223 | !Config Key = ok_adj_ema |
|---|
| 224 | !Config Desc = |
|---|
| 225 | !Config Def = false |
|---|
| 226 | !Config Help = |
|---|
| 227 | ! |
|---|
| 228 | ok_adj_ema = .false. |
|---|
| 229 | call getin('ok_adj_ema',ok_adj_ema) |
|---|
| 230 | ! |
|---|
| 231 | !Config Key = iflag_clw |
|---|
| 232 | !Config Desc = |
|---|
| 233 | !Config Def = 0 |
|---|
| 234 | !Config Help = |
|---|
| 235 | ! |
|---|
| 236 | iflag_clw = 0 |
|---|
| 237 | call getin('iflag_clw',iflag_clw) |
|---|
| 238 | ! |
|---|
| 239 | !Config Key = cld_lc_lsc |
|---|
| 240 | !Config Desc = |
|---|
| 241 | !Config Def = 2.6e-4 |
|---|
| 242 | !Config Help = |
|---|
| 243 | ! |
|---|
| 244 | cld_lc_lsc = 2.6e-4 |
|---|
| 245 | call getin('cld_lc_lsc',cld_lc_lsc) |
|---|
| 246 | ! |
|---|
| 247 | !Config Key = cld_lc_con |
|---|
| 248 | !Config Desc = |
|---|
| 249 | !Config Def = 2.6e-4 |
|---|
| 250 | !Config Help = |
|---|
| 251 | ! |
|---|
| 252 | cld_lc_con = 2.6e-4 |
|---|
| 253 | call getin('cld_lc_con',cld_lc_con) |
|---|
| 254 | ! |
|---|
| 255 | !Config Key = cld_tau_lsc |
|---|
| 256 | !Config Desc = |
|---|
| 257 | !Config Def = 3600. |
|---|
| 258 | !Config Help = |
|---|
| 259 | ! |
|---|
| 260 | cld_tau_lsc = 3600. |
|---|
| 261 | call getin('cld_tau_lsc',cld_tau_lsc) |
|---|
| 262 | ! |
|---|
| 263 | !Config Key = cld_tau_con |
|---|
| 264 | !Config Desc = |
|---|
| 265 | !Config Def = 3600. |
|---|
| 266 | !Config Help = |
|---|
| 267 | ! |
|---|
| 268 | cld_tau_con = 3600. |
|---|
| 269 | call getin('cld_tau_con',cld_tau_con) |
|---|
| 270 | ! |
|---|
| 271 | !Config Key = ffallv_lsc |
|---|
| 272 | !Config Desc = |
|---|
| 273 | !Config Def = 1. |
|---|
| 274 | !Config Help = |
|---|
| 275 | ! |
|---|
| 276 | ffallv_lsc = 1. |
|---|
| 277 | call getin('ffallv_lsc',ffallv_lsc) |
|---|
| 278 | ! |
|---|
| 279 | !Config Key = ffallv_con |
|---|
| 280 | !Config Desc = |
|---|
| 281 | !Config Def = 1. |
|---|
| 282 | !Config Help = |
|---|
| 283 | ! |
|---|
| 284 | ffallv_con = 1. |
|---|
| 285 | call getin('ffallv_con',ffallv_con) |
|---|
| 286 | ! |
|---|
| 287 | !Config Key = coef_eva |
|---|
| 288 | !Config Desc = |
|---|
| 289 | !Config Def = 2.e-5 |
|---|
| 290 | !Config Help = |
|---|
| 291 | ! |
|---|
| 292 | coef_eva = 2.e-5 |
|---|
| 293 | call getin('coef_eva',coef_eva) |
|---|
| 294 | ! |
|---|
| 295 | !Config Key = reevap_ice |
|---|
| 296 | !Config Desc = |
|---|
| 297 | !Config Def = .false. |
|---|
| 298 | !Config Help = |
|---|
| 299 | ! |
|---|
| 300 | reevap_ice = .false. |
|---|
| 301 | call getin('reevap_ice',reevap_ice) |
|---|
| 302 | ! |
|---|
| 303 | !Config Key = iflag_cldcon |
|---|
| 304 | !Config Desc = |
|---|
| 305 | !Config Def = 1 |
|---|
| 306 | !Config Help = |
|---|
| 307 | ! |
|---|
| 308 | iflag_cldcon = 1 |
|---|
| 309 | call getin('iflag_cldcon',iflag_cldcon) |
|---|
| [219] | 310 | |
|---|
| 311 | ! |
|---|
| [373] | 312 | !Config Key = iflag_pdf |
|---|
| 313 | !Config Desc = |
|---|
| 314 | !Config Def = 0 |
|---|
| 315 | !Config Help = |
|---|
| [219] | 316 | ! |
|---|
| [373] | 317 | iflag_pdf = 0 |
|---|
| 318 | call getin('iflag_pdf',iflag_pdf) |
|---|
| [219] | 319 | ! |
|---|
| [373] | 320 | !Config Key = fact_cldcon |
|---|
| 321 | !Config Desc = |
|---|
| 322 | !Config Def = 0.375 |
|---|
| 323 | !Config Help = |
|---|
| 324 | ! |
|---|
| 325 | fact_cldcon = 0.375 |
|---|
| 326 | call getin('fact_cldcon',fact_cldcon) |
|---|
| [219] | 327 | |
|---|
| [373] | 328 | ! |
|---|
| 329 | !Config Key = facttemps |
|---|
| 330 | !Config Desc = |
|---|
| 331 | !Config Def = 1.e-4 |
|---|
| 332 | !Config Help = |
|---|
| 333 | ! |
|---|
| 334 | facttemps = 1.e-4 |
|---|
| 335 | call getin('facttemps',facttemps) |
|---|
| 336 | |
|---|
| 337 | ! |
|---|
| 338 | !Config Key = ok_newmicro |
|---|
| 339 | !Config Desc = |
|---|
| 340 | !Config Def = .true. |
|---|
| 341 | !Config Help = |
|---|
| 342 | ! |
|---|
| 343 | ok_newmicro = .true. |
|---|
| 344 | call getin('ok_newmicro',ok_newmicro) |
|---|
| 345 | ! |
|---|
| 346 | !Config Key = ratqsbas |
|---|
| 347 | !Config Desc = |
|---|
| 348 | !Config Def = 0.01 |
|---|
| 349 | !Config Help = |
|---|
| 350 | ! |
|---|
| 351 | ratqsbas = 0.01 |
|---|
| 352 | call getin('ratqsbas',ratqsbas) |
|---|
| 353 | ! |
|---|
| 354 | !Config Key = ratqshaut |
|---|
| 355 | !Config Desc = |
|---|
| 356 | !Config Def = 0.3 |
|---|
| 357 | !Config Help = |
|---|
| 358 | ! |
|---|
| 359 | ratqshaut = 0.3 |
|---|
| 360 | call getin('ratqshaut',ratqshaut) |
|---|
| 361 | |
|---|
| 362 | ! |
|---|
| [386] | 363 | !Config Key = rad_froid |
|---|
| 364 | !Config Desc = |
|---|
| 365 | !Config Def = 35.0 |
|---|
| 366 | !Config Help = |
|---|
| [373] | 367 | ! |
|---|
| [386] | 368 | rad_froid = 35.0 |
|---|
| 369 | call getin('rad_froid',rad_froid) |
|---|
| 370 | |
|---|
| [373] | 371 | ! |
|---|
| [386] | 372 | !Config Key = rad_chau1 |
|---|
| 373 | !Config Desc = |
|---|
| 374 | !Config Def = 13.0 |
|---|
| 375 | !Config Help = |
|---|
| 376 | ! |
|---|
| 377 | rad_chau1 = 13.0 |
|---|
| 378 | call getin('rad_chau1',rad_chau1) |
|---|
| [373] | 379 | |
|---|
| [386] | 380 | ! |
|---|
| 381 | !Config Key = rad_chau2 |
|---|
| 382 | !Config Desc = |
|---|
| 383 | !Config Def = 9.0 |
|---|
| 384 | !Config Help = |
|---|
| 385 | ! |
|---|
| 386 | rad_chau2 = 9.0 |
|---|
| 387 | call getin('rad_chau2',rad_chau2) |
|---|
| 388 | |
|---|
| 389 | ! |
|---|
| 390 | !Config Key = |
|---|
| 391 | !Config Desc = |
|---|
| 392 | !Config Def = |
|---|
| 393 | !Config Help = |
|---|
| 394 | ! |
|---|
| 395 | ! = |
|---|
| 396 | ! call getin('',) |
|---|
| 397 | ! |
|---|
| 398 | ! |
|---|
| 399 | ! |
|---|
| 400 | ! |
|---|
| 401 | |
|---|
| [223] | 402 | write(numout,*)' ##############################################' |
|---|
| 403 | write(numout,*)' Configuration des parametres de la physique: ' |
|---|
| 404 | write(numout,*)' Config ocean = ', ocean |
|---|
| 405 | write(numout,*)' Config veget = ', ok_veget |
|---|
| 406 | write(numout,*)' Sortie journaliere = ', ok_journe |
|---|
| 407 | write(numout,*)' Sortie mensuelle = ', ok_mensuel |
|---|
| 408 | write(numout,*)' Sortie instantanee = ', ok_instan |
|---|
| [395] | 409 | write(numout,*)' Sortie bilan d''energie, if_ebil =', if_ebil |
|---|
| [433] | 410 | !IM constantes physiques BEG |
|---|
| 411 | write(numout,*)' Excentricite = ',R_ecc |
|---|
| 412 | write(numout,*)' Equinoxe = ',R_peri |
|---|
| 413 | write(numout,*)' Inclinaison =',R_incl |
|---|
| 414 | write(numout,*)' Constante solaire =',solaire |
|---|
| 415 | write(numout,*)' co2_ppm =',co2_ppm |
|---|
| 416 | write(numout,*)' RCO2 = ',RCO2 |
|---|
| 417 | write(numout,*)' RCH4 = ',RCH4 |
|---|
| 418 | write(numout,*)' RN2O = ',RN2O |
|---|
| 419 | write(numout,*)' RCFC11 = ',RCFC11 |
|---|
| 420 | write(numout,*)' RCFC12 = ',RCFC12 |
|---|
| 421 | !IM constantes physiques END |
|---|
| [373] | 422 | write(numout,*)' epmax = ', epmax |
|---|
| 423 | write(numout,*)' ok_adj_ema = ', ok_adj_ema |
|---|
| 424 | write(numout,*)' iflag_clw = ', iflag_clw |
|---|
| 425 | write(numout,*)' cld_lc_lsc = ', cld_lc_lsc |
|---|
| 426 | write(numout,*)' cld_lc_con = ', cld_lc_con |
|---|
| 427 | write(numout,*)' cld_tau_lsc = ', cld_tau_lsc |
|---|
| 428 | write(numout,*)' cld_tau_con = ', cld_tau_con |
|---|
| 429 | write(numout,*)' ffallv_lsc = ', ffallv_lsc |
|---|
| 430 | write(numout,*)' ffallv_con = ', ffallv_con |
|---|
| 431 | write(numout,*)' coef_eva = ', coef_eva |
|---|
| 432 | write(numout,*)' reevap_ice = ', reevap_ice |
|---|
| 433 | write(numout,*)' iflag_pdf = ', iflag_pdf |
|---|
| 434 | write(numout,*)' iflag_cldcon = ', iflag_cldcon |
|---|
| 435 | write(numout,*)' fact_cldcon = ', fact_cldcon |
|---|
| 436 | write(numout,*)' facttemps = ', facttemps |
|---|
| 437 | write(numout,*)' ok_newmicro = ',ok_newmicro |
|---|
| 438 | write(numout,*)' ratqsbas = ',ratqsbas |
|---|
| 439 | write(numout,*)' ratqshaut = ',ratqshaut |
|---|
| [219] | 440 | |
|---|
| 441 | return |
|---|
| 442 | |
|---|
| 443 | end subroutine conf_phys |
|---|
| 444 | |
|---|