| 1 | ! |
|---|
| 2 | ! $Id: conf_gcm.F 1299 2010-01-20 14:27:21Z jghattas $ |
|---|
| 3 | ! |
|---|
| 4 | c |
|---|
| 5 | c |
|---|
| 6 | SUBROUTINE conf_gcm( tapedef, etatinit, clesphy0 ) |
|---|
| 7 | c |
|---|
| 8 | USE control_mod |
|---|
| 9 | #ifdef CPP_IOIPSL |
|---|
| 10 | use IOIPSL |
|---|
| 11 | #else |
|---|
| 12 | ! if not using IOIPSL, we still need to use (a local version of) getin |
|---|
| 13 | use ioipsl_getincom |
|---|
| 14 | |
|---|
| 15 | #endif |
|---|
| 16 | IMPLICIT NONE |
|---|
| 17 | c----------------------------------------------------------------------- |
|---|
| 18 | c Auteurs : L. Fairhead , P. Le Van . |
|---|
| 19 | c |
|---|
| 20 | c Arguments : |
|---|
| 21 | c |
|---|
| 22 | c tapedef : |
|---|
| 23 | c etatinit : = TRUE , on ne compare pas les valeurs des para- |
|---|
| 24 | c -metres du zoom avec celles lues sur le fichier start . |
|---|
| 25 | c clesphy0 : sortie . |
|---|
| 26 | c |
|---|
| 27 | LOGICAL etatinit |
|---|
| 28 | INTEGER tapedef |
|---|
| 29 | |
|---|
| 30 | INTEGER longcles |
|---|
| 31 | PARAMETER( longcles = 20 ) |
|---|
| 32 | REAL clesphy0( longcles ) |
|---|
| 33 | c |
|---|
| 34 | c Declarations : |
|---|
| 35 | c -------------- |
|---|
| 36 | #include "dimensions.h" |
|---|
| 37 | #include "paramet.h" |
|---|
| 38 | #include "logic.h" |
|---|
| 39 | #include "serre.h" |
|---|
| 40 | #include "comdissnew.h" |
|---|
| 41 | #include "temps.h" |
|---|
| 42 | #include "comconst.h" |
|---|
| 43 | |
|---|
| 44 | ! FH 2008/05/09 On elimine toutes les clefs physiques dans la dynamique |
|---|
| 45 | ! #include "clesphys.h" |
|---|
| 46 | #include "iniprint.h" |
|---|
| 47 | c |
|---|
| 48 | c |
|---|
| 49 | c local: |
|---|
| 50 | c ------ |
|---|
| 51 | |
|---|
| 52 | CHARACTER ch1*72,ch2*72,ch3*72,ch4*12 |
|---|
| 53 | REAL clonn,clatt,grossismxx,grossismyy |
|---|
| 54 | REAL dzoomxx,dzoomyy, tauxx,tauyy |
|---|
| 55 | LOGICAL fxyhypbb, ysinuss |
|---|
| 56 | INTEGER i |
|---|
| 57 | |
|---|
| 58 | c |
|---|
| 59 | c ------------------------------------------------------------------- |
|---|
| 60 | c |
|---|
| 61 | c ......... Version du 29/04/97 .......... |
|---|
| 62 | c |
|---|
| 63 | c Nouveaux parametres nitergdiv,nitergrot,niterh,tetagdiv,tetagrot, |
|---|
| 64 | c tetatemp ajoutes pour la dissipation . |
|---|
| 65 | c |
|---|
| 66 | c Autre parametre ajoute en fin de liste de tapedef : ** fxyhypb ** |
|---|
| 67 | c |
|---|
| 68 | c Si fxyhypb = .TRUE. , choix de la fonction a derivee tangente hyperb. |
|---|
| 69 | c Sinon , choix de fxynew , a derivee sinusoidale .. |
|---|
| 70 | c |
|---|
| 71 | c ...... etatinit = . TRUE. si defrun est appele dans ETAT0_LMD ou |
|---|
| 72 | c LIMIT_LMD pour l'initialisation de start.dat (dic) et |
|---|
| 73 | c de limit.dat ( dic) ........... |
|---|
| 74 | c Sinon etatinit = . FALSE . |
|---|
| 75 | c |
|---|
| 76 | c Donc etatinit = .F. si on veut comparer les valeurs de grossismx , |
|---|
| 77 | c grossismy,clon,clat, fxyhypb lues sur le fichier start avec |
|---|
| 78 | c celles passees par run.def , au debut du gcm, apres l'appel a |
|---|
| 79 | c lectba . |
|---|
| 80 | c Ces parmetres definissant entre autres la grille et doivent etre |
|---|
| 81 | c pareils et coherents , sinon il y aura divergence du gcm . |
|---|
| 82 | c |
|---|
| 83 | c----------------------------------------------------------------------- |
|---|
| 84 | c initialisations: |
|---|
| 85 | c ---------------- |
|---|
| 86 | |
|---|
| 87 | !Config Key = lunout |
|---|
| 88 | !Config Desc = unite de fichier pour les impressions |
|---|
| 89 | !Config Def = 6 |
|---|
| 90 | !Config Help = unite de fichier pour les impressions |
|---|
| 91 | !Config (defaut sortie standard = 6) |
|---|
| 92 | lunout=6 |
|---|
| 93 | CALL getin('lunout', lunout) |
|---|
| 94 | IF (lunout /= 5 .and. lunout /= 6) THEN |
|---|
| 95 | OPEN(lunout,FILE='lmdz.out') |
|---|
| 96 | ENDIF |
|---|
| 97 | |
|---|
| 98 | !Config Key = prt_level |
|---|
| 99 | !Config Desc = niveau d'impressions de débogage |
|---|
| 100 | !Config Def = 0 |
|---|
| 101 | !Config Help = Niveau d'impression pour le débogage |
|---|
| 102 | !Config (0 = minimum d'impression) |
|---|
| 103 | prt_level = 0 |
|---|
| 104 | CALL getin('prt_level',prt_level) |
|---|
| 105 | |
|---|
| 106 | c----------------------------------------------------------------------- |
|---|
| 107 | c Parametres de controle du run: |
|---|
| 108 | c----------------------------------------------------------------------- |
|---|
| 109 | !Config Key = planet_type |
|---|
| 110 | !Config Desc = planet type ("earth", "mars", "venus", ...) |
|---|
| 111 | !Config Def = earth |
|---|
| 112 | !Config Help = this flag sets the type of atymosphere that is considered |
|---|
| 113 | planet_type="earth" |
|---|
| 114 | CALL getin('planet_type',planet_type) |
|---|
| 115 | |
|---|
| 116 | !Config Key = calend |
|---|
| 117 | !Config Desc = type de calendrier utilise |
|---|
| 118 | !Config Def = earth_360d |
|---|
| 119 | !Config Help = valeur possible: earth_360d, earth_365d, earth_366d |
|---|
| 120 | !Config |
|---|
| 121 | calend = 'earth_360d' |
|---|
| 122 | CALL getin('calend', calend) |
|---|
| 123 | |
|---|
| 124 | !Config Key = dayref |
|---|
| 125 | !Config Desc = Jour de l'etat initial |
|---|
| 126 | !Config Def = 1 |
|---|
| 127 | !Config Help = Jour de l'etat initial ( = 350 si 20 Decembre , |
|---|
| 128 | !Config par expl. ,comme ici ) ... A completer |
|---|
| 129 | dayref=1 |
|---|
| 130 | CALL getin('dayref', dayref) |
|---|
| 131 | |
|---|
| 132 | !Config Key = anneeref |
|---|
| 133 | !Config Desc = Annee de l'etat initial |
|---|
| 134 | !Config Def = 1998 |
|---|
| 135 | !Config Help = Annee de l'etat initial |
|---|
| 136 | !Config ( avec 4 chiffres ) ... A completer |
|---|
| 137 | anneeref = 1998 |
|---|
| 138 | CALL getin('anneeref',anneeref) |
|---|
| 139 | |
|---|
| 140 | !Config Key = raz_date |
|---|
| 141 | !Config Desc = Remise a zero de la date initiale |
|---|
| 142 | !Config Def = 0 (pas de remise a zero) |
|---|
| 143 | !Config Help = Remise a zero de la date initiale |
|---|
| 144 | !Config 0 pas de remise a zero, on garde la date du fichier restart |
|---|
| 145 | !Config 1 prise en compte de la date de gcm.def avec remise a zero |
|---|
| 146 | !Config des compteurs de pas de temps |
|---|
| 147 | raz_date = 0 |
|---|
| 148 | CALL getin('raz_date', raz_date) |
|---|
| 149 | |
|---|
| 150 | !Config Key = nday |
|---|
| 151 | !Config Desc = Nombre de jours d'integration |
|---|
| 152 | !Config Def = 10 |
|---|
| 153 | !Config Help = Nombre de jours d'integration |
|---|
| 154 | !Config ... On pourait aussi permettre des mois ou des annees ! |
|---|
| 155 | nday = 10 |
|---|
| 156 | CALL getin('nday',nday) |
|---|
| 157 | |
|---|
| 158 | !Config Key = day_step |
|---|
| 159 | !Config Desc = nombre de pas par jour |
|---|
| 160 | !Config Def = 240 |
|---|
| 161 | !Config Help = nombre de pas par jour (multiple de iperiod) ( |
|---|
| 162 | !Config ici pour dt = 1 min ) |
|---|
| 163 | day_step = 240 |
|---|
| 164 | CALL getin('day_step',day_step) |
|---|
| 165 | |
|---|
| 166 | !Config Key = iperiod |
|---|
| 167 | !Config Desc = periode pour le pas Matsuno |
|---|
| 168 | !Config Def = 5 |
|---|
| 169 | !Config Help = periode pour le pas Matsuno (en pas de temps) |
|---|
| 170 | iperiod = 5 |
|---|
| 171 | CALL getin('iperiod',iperiod) |
|---|
| 172 | |
|---|
| 173 | !Config Key = iapp_tracvl |
|---|
| 174 | !Config Desc = frequence du groupement des flux |
|---|
| 175 | !Config Def = iperiod |
|---|
| 176 | !Config Help = frequence du groupement des flux (en pas de temps) |
|---|
| 177 | iapp_tracvl = iperiod |
|---|
| 178 | CALL getin('iapp_tracvl',iapp_tracvl) |
|---|
| 179 | |
|---|
| 180 | !Config Key = iconser |
|---|
| 181 | !Config Desc = periode de sortie des variables de controle |
|---|
| 182 | !Config Def = 240 |
|---|
| 183 | !Config Help = periode de sortie des variables de controle |
|---|
| 184 | !Config (En pas de temps) |
|---|
| 185 | iconser = 240 |
|---|
| 186 | CALL getin('iconser', iconser) |
|---|
| 187 | |
|---|
| 188 | !Config Key = iecri |
|---|
| 189 | !Config Desc = periode d'ecriture du fichier histoire |
|---|
| 190 | !Config Def = 1 |
|---|
| 191 | !Config Help = periode d'ecriture du fichier histoire (en jour) |
|---|
| 192 | iecri = 1 |
|---|
| 193 | CALL getin('iecri',iecri) |
|---|
| 194 | |
|---|
| 195 | |
|---|
| 196 | !Config Key = periodav |
|---|
| 197 | !Config Desc = periode de stockage fichier histmoy |
|---|
| 198 | !Config Def = 1 |
|---|
| 199 | !Config Help = periode de stockage fichier histmoy (en jour) |
|---|
| 200 | periodav = 1. |
|---|
| 201 | CALL getin('periodav',periodav) |
|---|
| 202 | |
|---|
| 203 | !Config Key = output_grads_dyn |
|---|
| 204 | !Config Desc = output dynamics diagnostics in 'dyn.dat' file |
|---|
| 205 | !Config Def = n |
|---|
| 206 | !Config Help = output dynamics diagnostics in Grads-readable 'dyn.dat' file |
|---|
| 207 | output_grads_dyn=.false. |
|---|
| 208 | CALL getin('output_grads_dyn',output_grads_dyn) |
|---|
| 209 | |
|---|
| 210 | !Config Key = idissip |
|---|
| 211 | !Config Desc = periode de la dissipation |
|---|
| 212 | !Config Def = 10 |
|---|
| 213 | !Config Help = periode de la dissipation |
|---|
| 214 | !Config (en pas) ... a completer ! |
|---|
| 215 | idissip = 10 |
|---|
| 216 | CALL getin('idissip',idissip) |
|---|
| 217 | |
|---|
| 218 | ccc .... P. Le Van , modif le 29/04/97 .pour la dissipation ... |
|---|
| 219 | ccc |
|---|
| 220 | |
|---|
| 221 | !Config Key = lstardis |
|---|
| 222 | !Config Desc = choix de l'operateur de dissipation |
|---|
| 223 | !Config Def = y |
|---|
| 224 | !Config Help = choix de l'operateur de dissipation |
|---|
| 225 | !Config 'y' si on veut star et 'n' si on veut non-start ! |
|---|
| 226 | !Config Moi y en a pas comprendre ! |
|---|
| 227 | lstardis = .TRUE. |
|---|
| 228 | CALL getin('lstardis',lstardis) |
|---|
| 229 | |
|---|
| 230 | |
|---|
| 231 | !Config Key = nitergdiv |
|---|
| 232 | !Config Desc = Nombre d'iteration de gradiv |
|---|
| 233 | !Config Def = 1 |
|---|
| 234 | !Config Help = nombre d'iterations de l'operateur de dissipation |
|---|
| 235 | !Config gradiv |
|---|
| 236 | nitergdiv = 1 |
|---|
| 237 | CALL getin('nitergdiv',nitergdiv) |
|---|
| 238 | |
|---|
| 239 | !Config Key = nitergrot |
|---|
| 240 | !Config Desc = nombre d'iterations de nxgradrot |
|---|
| 241 | !Config Def = 2 |
|---|
| 242 | !Config Help = nombre d'iterations de l'operateur de dissipation |
|---|
| 243 | !Config nxgradrot |
|---|
| 244 | nitergrot = 2 |
|---|
| 245 | CALL getin('nitergrot',nitergrot) |
|---|
| 246 | |
|---|
| 247 | |
|---|
| 248 | !Config Key = niterh |
|---|
| 249 | !Config Desc = nombre d'iterations de divgrad |
|---|
| 250 | !Config Def = 2 |
|---|
| 251 | !Config Help = nombre d'iterations de l'operateur de dissipation |
|---|
| 252 | !Config divgrad |
|---|
| 253 | niterh = 2 |
|---|
| 254 | CALL getin('niterh',niterh) |
|---|
| 255 | |
|---|
| 256 | |
|---|
| 257 | !Config Key = tetagdiv |
|---|
| 258 | !Config Desc = temps de dissipation pour div |
|---|
| 259 | !Config Def = 7200 |
|---|
| 260 | !Config Help = temps de dissipation des plus petites longeur |
|---|
| 261 | !Config d'ondes pour u,v (gradiv) |
|---|
| 262 | tetagdiv = 7200. |
|---|
| 263 | CALL getin('tetagdiv',tetagdiv) |
|---|
| 264 | |
|---|
| 265 | !Config Key = tetagrot |
|---|
| 266 | !Config Desc = temps de dissipation pour grad |
|---|
| 267 | !Config Def = 7200 |
|---|
| 268 | !Config Help = temps de dissipation des plus petites longeur |
|---|
| 269 | !Config d'ondes pour u,v (nxgradrot) |
|---|
| 270 | tetagrot = 7200. |
|---|
| 271 | CALL getin('tetagrot',tetagrot) |
|---|
| 272 | |
|---|
| 273 | !Config Key = tetatemp |
|---|
| 274 | !Config Desc = temps de dissipation pour h |
|---|
| 275 | !Config Def = 7200 |
|---|
| 276 | !Config Help = temps de dissipation des plus petites longeur |
|---|
| 277 | !Config d'ondes pour h (divgrad) |
|---|
| 278 | tetatemp = 7200. |
|---|
| 279 | CALL getin('tetatemp',tetatemp ) |
|---|
| 280 | |
|---|
| 281 | ! Parametres controlant la variation sur la verticale des constantes de |
|---|
| 282 | ! dissipation. |
|---|
| 283 | ! Pour le moment actifs uniquement dans la version a 39 niveaux |
|---|
| 284 | ! avec ok_strato=y |
|---|
| 285 | |
|---|
| 286 | dissip_factz=4. |
|---|
| 287 | dissip_deltaz=10. |
|---|
| 288 | dissip_zref=30. |
|---|
| 289 | CALL getin('dissip_factz',dissip_factz ) |
|---|
| 290 | CALL getin('dissip_deltaz',dissip_deltaz ) |
|---|
| 291 | CALL getin('dissip_zref',dissip_zref ) |
|---|
| 292 | |
|---|
| 293 | iflag_top_bound=1 |
|---|
| 294 | tau_top_bound=1.e-5 |
|---|
| 295 | CALL getin('iflag_top_bound',iflag_top_bound) |
|---|
| 296 | CALL getin('tau_top_bound',tau_top_bound) |
|---|
| 297 | |
|---|
| 298 | !Config Key = coefdis |
|---|
| 299 | !Config Desc = coefficient pour gamdissip |
|---|
| 300 | !Config Def = 0 |
|---|
| 301 | !Config Help = coefficient pour gamdissip |
|---|
| 302 | coefdis = 0. |
|---|
| 303 | CALL getin('coefdis',coefdis) |
|---|
| 304 | |
|---|
| 305 | !Config Key = purmats |
|---|
| 306 | !Config Desc = Schema d'integration |
|---|
| 307 | !Config Def = n |
|---|
| 308 | !Config Help = Choix du schema d'integration temporel. |
|---|
| 309 | !Config y = pure Matsuno sinon c'est du Matsuno-leapfrog |
|---|
| 310 | purmats = .FALSE. |
|---|
| 311 | CALL getin('purmats',purmats) |
|---|
| 312 | |
|---|
| 313 | !Config Key = ok_guide |
|---|
| 314 | !Config Desc = Guidage |
|---|
| 315 | !Config Def = n |
|---|
| 316 | !Config Help = Guidage |
|---|
| 317 | ok_guide = .FALSE. |
|---|
| 318 | CALL getin('ok_guide',ok_guide) |
|---|
| 319 | |
|---|
| 320 | c ............................................................... |
|---|
| 321 | |
|---|
| 322 | !Config Key = read_start |
|---|
| 323 | !Config Desc = Initialize model using a 'start.nc' file |
|---|
| 324 | !Config Def = y |
|---|
| 325 | !Config Help = y: intialize dynamical fields using a 'start.nc' file |
|---|
| 326 | ! n: fields are initialized by 'iniacademic' routine |
|---|
| 327 | read_start= .true. |
|---|
| 328 | CALL getin('read_start',read_start) |
|---|
| 329 | |
|---|
| 330 | !Config Key = iflag_phys |
|---|
| 331 | !Config Desc = Avec ls physique |
|---|
| 332 | !Config Def = 1 |
|---|
| 333 | !Config Help = Permet de faire tourner le modele sans |
|---|
| 334 | !Config physique. |
|---|
| 335 | iflag_phys = 1 |
|---|
| 336 | CALL getin('iflag_phys',iflag_phys) |
|---|
| 337 | |
|---|
| 338 | |
|---|
| 339 | !Config Key = iphysiq |
|---|
| 340 | !Config Desc = Periode de la physique |
|---|
| 341 | !Config Def = 5 |
|---|
| 342 | !Config Help = Periode de la physique en pas de temps de la dynamique. |
|---|
| 343 | iphysiq = 5 |
|---|
| 344 | CALL getin('iphysiq', iphysiq) |
|---|
| 345 | |
|---|
| 346 | !Config Key = ip_ebil_dyn |
|---|
| 347 | !Config Desc = PRINT level for energy conserv. diag. |
|---|
| 348 | !Config Def = 0 |
|---|
| 349 | !Config Help = PRINT level for energy conservation diag. ; |
|---|
| 350 | ! les options suivantes existent : |
|---|
| 351 | !Config 0 pas de print |
|---|
| 352 | !Config 1 pas de print |
|---|
| 353 | !Config 2 print, |
|---|
| 354 | ip_ebil_dyn = 0 |
|---|
| 355 | CALL getin('ip_ebil_dyn',ip_ebil_dyn) |
|---|
| 356 | ! |
|---|
| 357 | |
|---|
| 358 | DO i = 1, longcles |
|---|
| 359 | clesphy0(i) = 0. |
|---|
| 360 | ENDDO |
|---|
| 361 | |
|---|
| 362 | ccc .... P. Le Van , ajout le 7/03/95 .pour le zoom ... |
|---|
| 363 | c ......... ( modif le 17/04/96 ) ......... |
|---|
| 364 | c |
|---|
| 365 | IF( etatinit ) GO TO 100 |
|---|
| 366 | |
|---|
| 367 | !Config Key = clon |
|---|
| 368 | !Config Desc = centre du zoom, longitude |
|---|
| 369 | !Config Def = 0 |
|---|
| 370 | !Config Help = longitude en degres du centre |
|---|
| 371 | !Config du zoom |
|---|
| 372 | clonn = 0. |
|---|
| 373 | CALL getin('clon',clonn) |
|---|
| 374 | |
|---|
| 375 | !Config Key = clat |
|---|
| 376 | !Config Desc = centre du zoom, latitude |
|---|
| 377 | !Config Def = 0 |
|---|
| 378 | !Config Help = latitude en degres du centre du zoom |
|---|
| 379 | !Config |
|---|
| 380 | clatt = 0. |
|---|
| 381 | CALL getin('clat',clatt) |
|---|
| 382 | |
|---|
| 383 | c |
|---|
| 384 | c |
|---|
| 385 | IF( ABS(clat - clatt).GE. 0.001 ) THEN |
|---|
| 386 | write(lunout,*)'conf_gcm: La valeur de clat passee par run.def', |
|---|
| 387 | & ' est differente de celle lue sur le fichier start ' |
|---|
| 388 | STOP |
|---|
| 389 | ENDIF |
|---|
| 390 | |
|---|
| 391 | !Config Key = grossismx |
|---|
| 392 | !Config Desc = zoom en longitude |
|---|
| 393 | !Config Def = 1.0 |
|---|
| 394 | !Config Help = facteur de grossissement du zoom, |
|---|
| 395 | !Config selon la longitude |
|---|
| 396 | grossismxx = 1.0 |
|---|
| 397 | CALL getin('grossismx',grossismxx) |
|---|
| 398 | |
|---|
| 399 | |
|---|
| 400 | IF( ABS(grossismx - grossismxx).GE. 0.001 ) THEN |
|---|
| 401 | write(lunout,*)'conf_gcm: La valeur de grossismx passee par ', |
|---|
| 402 | & 'run.def est differente de celle lue sur le fichier start ' |
|---|
| 403 | STOP |
|---|
| 404 | ENDIF |
|---|
| 405 | |
|---|
| 406 | !Config Key = grossismy |
|---|
| 407 | !Config Desc = zoom en latitude |
|---|
| 408 | !Config Def = 1.0 |
|---|
| 409 | !Config Help = facteur de grossissement du zoom, |
|---|
| 410 | !Config selon la latitude |
|---|
| 411 | grossismyy = 1.0 |
|---|
| 412 | CALL getin('grossismy',grossismyy) |
|---|
| 413 | |
|---|
| 414 | IF( ABS(grossismy - grossismyy).GE. 0.001 ) THEN |
|---|
| 415 | write(lunout,*)'conf_gcm: La valeur de grossismy passee par ', |
|---|
| 416 | & 'run.def est differente de celle lue sur le fichier start ' |
|---|
| 417 | STOP |
|---|
| 418 | ENDIF |
|---|
| 419 | |
|---|
| 420 | IF( grossismx.LT.1. ) THEN |
|---|
| 421 | write(lunout,*) |
|---|
| 422 | & 'conf_gcm: *** ATTENTION !! grossismx < 1 . *** ' |
|---|
| 423 | STOP |
|---|
| 424 | ELSE |
|---|
| 425 | alphax = 1. - 1./ grossismx |
|---|
| 426 | ENDIF |
|---|
| 427 | |
|---|
| 428 | |
|---|
| 429 | IF( grossismy.LT.1. ) THEN |
|---|
| 430 | write(lunout,*) |
|---|
| 431 | & 'conf_gcm: *** ATTENTION !! grossismy < 1 . *** ' |
|---|
| 432 | STOP |
|---|
| 433 | ELSE |
|---|
| 434 | alphay = 1. - 1./ grossismy |
|---|
| 435 | ENDIF |
|---|
| 436 | |
|---|
| 437 | write(lunout,*)'conf_gcm: alphax alphay',alphax,alphay |
|---|
| 438 | c |
|---|
| 439 | c alphax et alphay sont les anciennes formulat. des grossissements |
|---|
| 440 | c |
|---|
| 441 | c |
|---|
| 442 | |
|---|
| 443 | !Config Key = fxyhypb |
|---|
| 444 | !Config Desc = Fonction hyperbolique |
|---|
| 445 | !Config Def = y |
|---|
| 446 | !Config Help = Fonction f(y) hyperbolique si = .true. |
|---|
| 447 | !Config sinon sinusoidale |
|---|
| 448 | fxyhypbb = .TRUE. |
|---|
| 449 | CALL getin('fxyhypb',fxyhypbb) |
|---|
| 450 | |
|---|
| 451 | IF( .NOT.fxyhypb ) THEN |
|---|
| 452 | IF( fxyhypbb ) THEN |
|---|
| 453 | write(lunout,*)' ******** PBS DANS CONF_GCM ******** ' |
|---|
| 454 | write(lunout,*)' *** fxyhypb lu sur le fichier start est ', |
|---|
| 455 | * 'F alors qu il est T sur run.def ***' |
|---|
| 456 | STOP |
|---|
| 457 | ENDIF |
|---|
| 458 | ELSE |
|---|
| 459 | IF( .NOT.fxyhypbb ) THEN |
|---|
| 460 | write(lunout,*)' ******** PBS DANS CONF_GCM ******** ' |
|---|
| 461 | write(lunout,*)' *** fxyhypb lu sur le fichier start est ', |
|---|
| 462 | * 'T alors qu il est F sur run.def **** ' |
|---|
| 463 | STOP |
|---|
| 464 | ENDIF |
|---|
| 465 | ENDIF |
|---|
| 466 | c |
|---|
| 467 | !Config Key = dzoomx |
|---|
| 468 | !Config Desc = extension en longitude |
|---|
| 469 | !Config Def = 0 |
|---|
| 470 | !Config Help = extension en longitude de la zone du zoom |
|---|
| 471 | !Config ( fraction de la zone totale) |
|---|
| 472 | dzoomxx = 0.0 |
|---|
| 473 | CALL getin('dzoomx',dzoomxx) |
|---|
| 474 | |
|---|
| 475 | IF( fxyhypb ) THEN |
|---|
| 476 | IF( ABS(dzoomx - dzoomxx).GE. 0.001 ) THEN |
|---|
| 477 | write(lunout,*)'conf_gcm: La valeur de dzoomx passee par ', |
|---|
| 478 | * 'run.def est differente de celle lue sur le fichier start ' |
|---|
| 479 | STOP |
|---|
| 480 | ENDIF |
|---|
| 481 | ENDIF |
|---|
| 482 | |
|---|
| 483 | !Config Key = dzoomy |
|---|
| 484 | !Config Desc = extension en latitude |
|---|
| 485 | !Config Def = 0 |
|---|
| 486 | !Config Help = extension en latitude de la zone du zoom |
|---|
| 487 | !Config ( fraction de la zone totale) |
|---|
| 488 | dzoomyy = 0.0 |
|---|
| 489 | CALL getin('dzoomy',dzoomyy) |
|---|
| 490 | |
|---|
| 491 | IF( fxyhypb ) THEN |
|---|
| 492 | IF( ABS(dzoomy - dzoomyy).GE. 0.001 ) THEN |
|---|
| 493 | write(lunout,*)'conf_gcm: La valeur de dzoomy passee par ', |
|---|
| 494 | * 'run.def est differente de celle lue sur le fichier start ' |
|---|
| 495 | STOP |
|---|
| 496 | ENDIF |
|---|
| 497 | ENDIF |
|---|
| 498 | |
|---|
| 499 | !Config Key = taux |
|---|
| 500 | !Config Desc = raideur du zoom en X |
|---|
| 501 | !Config Def = 3 |
|---|
| 502 | !Config Help = raideur du zoom en X |
|---|
| 503 | tauxx = 3.0 |
|---|
| 504 | CALL getin('taux',tauxx) |
|---|
| 505 | |
|---|
| 506 | IF( fxyhypb ) THEN |
|---|
| 507 | IF( ABS(taux - tauxx).GE. 0.001 ) THEN |
|---|
| 508 | write(lunout,*)'conf_gcm: La valeur de taux passee par ', |
|---|
| 509 | * 'run.def est differente de celle lue sur le fichier start ' |
|---|
| 510 | STOP |
|---|
| 511 | ENDIF |
|---|
| 512 | ENDIF |
|---|
| 513 | |
|---|
| 514 | !Config Key = tauyy |
|---|
| 515 | !Config Desc = raideur du zoom en Y |
|---|
| 516 | !Config Def = 3 |
|---|
| 517 | !Config Help = raideur du zoom en Y |
|---|
| 518 | tauyy = 3.0 |
|---|
| 519 | CALL getin('tauy',tauyy) |
|---|
| 520 | |
|---|
| 521 | IF( fxyhypb ) THEN |
|---|
| 522 | IF( ABS(tauy - tauyy).GE. 0.001 ) THEN |
|---|
| 523 | write(lunout,*)'conf_gcm: La valeur de tauy passee par ', |
|---|
| 524 | * 'run.def est differente de celle lue sur le fichier start ' |
|---|
| 525 | STOP |
|---|
| 526 | ENDIF |
|---|
| 527 | ENDIF |
|---|
| 528 | |
|---|
| 529 | cc |
|---|
| 530 | IF( .NOT.fxyhypb ) THEN |
|---|
| 531 | |
|---|
| 532 | !Config Key = ysinus |
|---|
| 533 | !Config IF = !fxyhypb |
|---|
| 534 | !Config Desc = Fonction en Sinus |
|---|
| 535 | !Config Def = y |
|---|
| 536 | !Config Help = Fonction f(y) avec y = Sin(latit.) si = .true. |
|---|
| 537 | !Config sinon y = latit. |
|---|
| 538 | ysinuss = .TRUE. |
|---|
| 539 | CALL getin('ysinus',ysinuss) |
|---|
| 540 | |
|---|
| 541 | IF( .NOT.ysinus ) THEN |
|---|
| 542 | IF( ysinuss ) THEN |
|---|
| 543 | write(lunout,*)' ******** PBS DANS CONF_GCM ******** ' |
|---|
| 544 | write(lunout,*)' *** ysinus lu sur le fichier start est F', |
|---|
| 545 | * ' alors qu il est T sur run.def ***' |
|---|
| 546 | STOP |
|---|
| 547 | ENDIF |
|---|
| 548 | ELSE |
|---|
| 549 | IF( .NOT.ysinuss ) THEN |
|---|
| 550 | write(lunout,*)' ******** PBS DANS CONF_GCM ******** ' |
|---|
| 551 | write(lunout,*)' *** ysinus lu sur le fichier start est T', |
|---|
| 552 | * ' alors qu il est F sur run.def **** ' |
|---|
| 553 | STOP |
|---|
| 554 | ENDIF |
|---|
| 555 | ENDIF |
|---|
| 556 | ENDIF ! of IF( .NOT.fxyhypb ) |
|---|
| 557 | c |
|---|
| 558 | !Config Key = offline |
|---|
| 559 | !Config Desc = Nouvelle eau liquide |
|---|
| 560 | !Config Def = n |
|---|
| 561 | !Config Help = Permet de mettre en route la |
|---|
| 562 | !Config nouvelle parametrisation de l'eau liquide ! |
|---|
| 563 | offline = .FALSE. |
|---|
| 564 | CALL getin('offline',offline) |
|---|
| 565 | |
|---|
| 566 | !Config Key = config_inca |
|---|
| 567 | !Config Desc = Choix de configuration de INCA |
|---|
| 568 | !Config Def = none |
|---|
| 569 | !Config Help = Choix de configuration de INCA : |
|---|
| 570 | !Config 'none' = sans INCA |
|---|
| 571 | !Config 'chem' = INCA avec calcul de chemie |
|---|
| 572 | !Config 'aero' = INCA avec calcul des aerosols |
|---|
| 573 | config_inca = 'none' |
|---|
| 574 | CALL getin('config_inca',config_inca) |
|---|
| 575 | |
|---|
| 576 | |
|---|
| 577 | !Config Key = ok_dynzon |
|---|
| 578 | !Config Desc = calcul et sortie des transports |
|---|
| 579 | !Config Def = n |
|---|
| 580 | !Config Help = Permet de mettre en route le calcul des transports |
|---|
| 581 | !Config |
|---|
| 582 | ok_dynzon = .FALSE. |
|---|
| 583 | CALL getin('ok_dynzon',ok_dynzon) |
|---|
| 584 | |
|---|
| 585 | write(lunout,*)' #########################################' |
|---|
| 586 | write(lunout,*)' Configuration des parametres du gcm: ' |
|---|
| 587 | write(lunout,*)' planet_type = ', planet_type |
|---|
| 588 | write(lunout,*)' calend = ', calend |
|---|
| 589 | write(lunout,*)' dayref = ', dayref |
|---|
| 590 | write(lunout,*)' anneeref = ', anneeref |
|---|
| 591 | write(lunout,*)' nday = ', nday |
|---|
| 592 | write(lunout,*)' day_step = ', day_step |
|---|
| 593 | write(lunout,*)' iperiod = ', iperiod |
|---|
| 594 | write(lunout,*)' iconser = ', iconser |
|---|
| 595 | write(lunout,*)' iecri = ', iecri |
|---|
| 596 | write(lunout,*)' periodav = ', periodav |
|---|
| 597 | write(lunout,*)' output_grads_dyn = ', output_grads_dyn |
|---|
| 598 | write(lunout,*)' idissip = ', idissip |
|---|
| 599 | write(lunout,*)' lstardis = ', lstardis |
|---|
| 600 | write(lunout,*)' nitergdiv = ', nitergdiv |
|---|
| 601 | write(lunout,*)' nitergrot = ', nitergrot |
|---|
| 602 | write(lunout,*)' niterh = ', niterh |
|---|
| 603 | write(lunout,*)' tetagdiv = ', tetagdiv |
|---|
| 604 | write(lunout,*)' tetagrot = ', tetagrot |
|---|
| 605 | write(lunout,*)' tetatemp = ', tetatemp |
|---|
| 606 | write(lunout,*)' coefdis = ', coefdis |
|---|
| 607 | write(lunout,*)' purmats = ', purmats |
|---|
| 608 | write(lunout,*)' read_start = ', read_start |
|---|
| 609 | write(lunout,*)' iflag_phys = ', iflag_phys |
|---|
| 610 | write(lunout,*)' iphysiq = ', iphysiq |
|---|
| 611 | write(lunout,*)' clonn = ', clonn |
|---|
| 612 | write(lunout,*)' clatt = ', clatt |
|---|
| 613 | write(lunout,*)' grossismx = ', grossismx |
|---|
| 614 | write(lunout,*)' grossismy = ', grossismy |
|---|
| 615 | write(lunout,*)' fxyhypbb = ', fxyhypbb |
|---|
| 616 | write(lunout,*)' dzoomxx = ', dzoomxx |
|---|
| 617 | write(lunout,*)' dzoomy = ', dzoomyy |
|---|
| 618 | write(lunout,*)' tauxx = ', tauxx |
|---|
| 619 | write(lunout,*)' tauyy = ', tauyy |
|---|
| 620 | write(lunout,*)' offline = ', offline |
|---|
| 621 | write(lunout,*)' config_inca = ', config_inca |
|---|
| 622 | write(lunout,*)' ok_dynzon = ', ok_dynzon |
|---|
| 623 | |
|---|
| 624 | RETURN |
|---|
| 625 | c ............................................... |
|---|
| 626 | c |
|---|
| 627 | 100 CONTINUE |
|---|
| 628 | !Config Key = clon |
|---|
| 629 | !Config Desc = centre du zoom, longitude |
|---|
| 630 | !Config Def = 0 |
|---|
| 631 | !Config Help = longitude en degres du centre |
|---|
| 632 | !Config du zoom |
|---|
| 633 | clon = 0. |
|---|
| 634 | CALL getin('clon',clon) |
|---|
| 635 | |
|---|
| 636 | !Config Key = clat |
|---|
| 637 | !Config Desc = centre du zoom, latitude |
|---|
| 638 | !Config Def = 0 |
|---|
| 639 | !Config Help = latitude en degres du centre du zoom |
|---|
| 640 | !Config |
|---|
| 641 | clat = 0. |
|---|
| 642 | CALL getin('clat',clat) |
|---|
| 643 | |
|---|
| 644 | !Config Key = grossismx |
|---|
| 645 | !Config Desc = zoom en longitude |
|---|
| 646 | !Config Def = 1.0 |
|---|
| 647 | !Config Help = facteur de grossissement du zoom, |
|---|
| 648 | !Config selon la longitude |
|---|
| 649 | grossismx = 1.0 |
|---|
| 650 | CALL getin('grossismx',grossismx) |
|---|
| 651 | |
|---|
| 652 | !Config Key = grossismy |
|---|
| 653 | !Config Desc = zoom en latitude |
|---|
| 654 | !Config Def = 1.0 |
|---|
| 655 | !Config Help = facteur de grossissement du zoom, |
|---|
| 656 | !Config selon la latitude |
|---|
| 657 | grossismy = 1.0 |
|---|
| 658 | CALL getin('grossismy',grossismy) |
|---|
| 659 | |
|---|
| 660 | IF( grossismx.LT.1. ) THEN |
|---|
| 661 | write(lunout,*) |
|---|
| 662 | & 'conf_gcm: *** ATTENTION !! grossismx < 1 . *** ' |
|---|
| 663 | STOP |
|---|
| 664 | ELSE |
|---|
| 665 | alphax = 1. - 1./ grossismx |
|---|
| 666 | ENDIF |
|---|
| 667 | |
|---|
| 668 | |
|---|
| 669 | IF( grossismy.LT.1. ) THEN |
|---|
| 670 | write(lunout,*) |
|---|
| 671 | & 'conf_gcm: *** ATTENTION !! grossismy < 1 . *** ' |
|---|
| 672 | STOP |
|---|
| 673 | ELSE |
|---|
| 674 | alphay = 1. - 1./ grossismy |
|---|
| 675 | ENDIF |
|---|
| 676 | |
|---|
| 677 | write(lunout,*)'conf_gcm: alphax alphay ',alphax,alphay |
|---|
| 678 | c |
|---|
| 679 | c alphax et alphay sont les anciennes formulat. des grossissements |
|---|
| 680 | c |
|---|
| 681 | c |
|---|
| 682 | |
|---|
| 683 | !Config Key = fxyhypb |
|---|
| 684 | !Config Desc = Fonction hyperbolique |
|---|
| 685 | !Config Def = y |
|---|
| 686 | !Config Help = Fonction f(y) hyperbolique si = .true. |
|---|
| 687 | !Config sinon sinusoidale |
|---|
| 688 | fxyhypb = .TRUE. |
|---|
| 689 | CALL getin('fxyhypb',fxyhypb) |
|---|
| 690 | |
|---|
| 691 | !Config Key = dzoomx |
|---|
| 692 | !Config Desc = extension en longitude |
|---|
| 693 | !Config Def = 0 |
|---|
| 694 | !Config Help = extension en longitude de la zone du zoom |
|---|
| 695 | !Config ( fraction de la zone totale) |
|---|
| 696 | dzoomx = 0.0 |
|---|
| 697 | CALL getin('dzoomx',dzoomx) |
|---|
| 698 | |
|---|
| 699 | !Config Key = dzoomy |
|---|
| 700 | !Config Desc = extension en latitude |
|---|
| 701 | !Config Def = 0 |
|---|
| 702 | !Config Help = extension en latitude de la zone du zoom |
|---|
| 703 | !Config ( fraction de la zone totale) |
|---|
| 704 | dzoomy = 0.0 |
|---|
| 705 | CALL getin('dzoomy',dzoomy) |
|---|
| 706 | |
|---|
| 707 | !Config Key = taux |
|---|
| 708 | !Config Desc = raideur du zoom en X |
|---|
| 709 | !Config Def = 3 |
|---|
| 710 | !Config Help = raideur du zoom en X |
|---|
| 711 | taux = 3.0 |
|---|
| 712 | CALL getin('taux',taux) |
|---|
| 713 | |
|---|
| 714 | !Config Key = tauy |
|---|
| 715 | !Config Desc = raideur du zoom en Y |
|---|
| 716 | !Config Def = 3 |
|---|
| 717 | !Config Help = raideur du zoom en Y |
|---|
| 718 | tauy = 3.0 |
|---|
| 719 | CALL getin('tauy',tauy) |
|---|
| 720 | |
|---|
| 721 | !Config Key = ysinus |
|---|
| 722 | !Config IF = !fxyhypb |
|---|
| 723 | !Config Desc = Fonction en Sinus |
|---|
| 724 | !Config Def = y |
|---|
| 725 | !Config Help = Fonction f(y) avec y = Sin(latit.) si = .true. |
|---|
| 726 | !Config sinon y = latit. |
|---|
| 727 | ysinus = .TRUE. |
|---|
| 728 | CALL getin('ysinus',ysinus) |
|---|
| 729 | c |
|---|
| 730 | !Config Key = offline |
|---|
| 731 | !Config Desc = Nouvelle eau liquide |
|---|
| 732 | !Config Def = n |
|---|
| 733 | !Config Help = Permet de mettre en route la |
|---|
| 734 | !Config nouvelle parametrisation de l'eau liquide ! |
|---|
| 735 | offline = .FALSE. |
|---|
| 736 | CALL getin('offline',offline) |
|---|
| 737 | |
|---|
| 738 | !Config Key = config_inca |
|---|
| 739 | !Config Desc = Choix de configuration de INCA |
|---|
| 740 | !Config Def = none |
|---|
| 741 | !Config Help = Choix de configuration de INCA : |
|---|
| 742 | !Config 'none' = sans INCA |
|---|
| 743 | !Config 'chem' = INCA avec calcul de chemie |
|---|
| 744 | !Config 'aero' = INCA avec calcul des aerosols |
|---|
| 745 | config_inca = 'none' |
|---|
| 746 | CALL getin('config_inca',config_inca) |
|---|
| 747 | |
|---|
| 748 | !Config Key = ok_dynzon |
|---|
| 749 | !Config Desc = calcul et sortie des transports |
|---|
| 750 | !Config Def = n |
|---|
| 751 | !Config Help = Permet de mettre en route le calcul des transports |
|---|
| 752 | !Config |
|---|
| 753 | ok_dynzon = .FALSE. |
|---|
| 754 | CALL getin('ok_dynzon',ok_dynzon) |
|---|
| 755 | |
|---|
| 756 | !Config key = ok_strato |
|---|
| 757 | !Config Desc = activation de la version strato |
|---|
| 758 | !Config Def = .FALSE. |
|---|
| 759 | !Config Help = active la version stratosphérique de LMDZ de F. Lott |
|---|
| 760 | |
|---|
| 761 | ok_strato=.FALSE. |
|---|
| 762 | CALL getin('ok_strato',ok_strato) |
|---|
| 763 | |
|---|
| 764 | !Config Key = ok_gradsfile |
|---|
| 765 | !Config Desc = activation des sorties grads du guidage |
|---|
| 766 | !Config Def = n |
|---|
| 767 | !Config Help = active les sorties grads du guidage |
|---|
| 768 | |
|---|
| 769 | ok_gradsfile = .FALSE. |
|---|
| 770 | CALL getin('ok_gradsfile',ok_gradsfile) |
|---|
| 771 | |
|---|
| 772 | write(lunout,*)' #########################################' |
|---|
| 773 | write(lunout,*)' Configuration des parametres du gcm: ' |
|---|
| 774 | write(lunout,*)' planet_type = ', planet_type |
|---|
| 775 | write(lunout,*)' calend = ', calend |
|---|
| 776 | write(lunout,*)' dayref = ', dayref |
|---|
| 777 | write(lunout,*)' anneeref = ', anneeref |
|---|
| 778 | write(lunout,*)' nday = ', nday |
|---|
| 779 | write(lunout,*)' day_step = ', day_step |
|---|
| 780 | write(lunout,*)' iperiod = ', iperiod |
|---|
| 781 | write(lunout,*)' iconser = ', iconser |
|---|
| 782 | write(lunout,*)' iecri = ', iecri |
|---|
| 783 | write(lunout,*)' periodav = ', periodav |
|---|
| 784 | write(lunout,*)' output_grads_dyn = ', output_grads_dyn |
|---|
| 785 | write(lunout,*)' idissip = ', idissip |
|---|
| 786 | write(lunout,*)' lstardis = ', lstardis |
|---|
| 787 | write(lunout,*)' nitergdiv = ', nitergdiv |
|---|
| 788 | write(lunout,*)' nitergrot = ', nitergrot |
|---|
| 789 | write(lunout,*)' niterh = ', niterh |
|---|
| 790 | write(lunout,*)' tetagdiv = ', tetagdiv |
|---|
| 791 | write(lunout,*)' tetagrot = ', tetagrot |
|---|
| 792 | write(lunout,*)' tetatemp = ', tetatemp |
|---|
| 793 | write(lunout,*)' coefdis = ', coefdis |
|---|
| 794 | write(lunout,*)' purmats = ', purmats |
|---|
| 795 | write(lunout,*)' read_start = ', read_start |
|---|
| 796 | write(lunout,*)' iflag_phys = ', iflag_phys |
|---|
| 797 | write(lunout,*)' iphysiq = ', iphysiq |
|---|
| 798 | write(lunout,*)' clon = ', clon |
|---|
| 799 | write(lunout,*)' clat = ', clat |
|---|
| 800 | write(lunout,*)' grossismx = ', grossismx |
|---|
| 801 | write(lunout,*)' grossismy = ', grossismy |
|---|
| 802 | write(lunout,*)' fxyhypb = ', fxyhypb |
|---|
| 803 | write(lunout,*)' dzoomx = ', dzoomx |
|---|
| 804 | write(lunout,*)' dzoomy = ', dzoomy |
|---|
| 805 | write(lunout,*)' taux = ', taux |
|---|
| 806 | write(lunout,*)' tauy = ', tauy |
|---|
| 807 | write(lunout,*)' offline = ', offline |
|---|
| 808 | write(lunout,*)' config_inca = ', config_inca |
|---|
| 809 | write(lunout,*)' ok_dynzon = ', ok_dynzon |
|---|
| 810 | write(lunout,*)' ok_strato = ', ok_strato |
|---|
| 811 | write(lunout,*)' ok_gradsfile = ', ok_gradsfile |
|---|
| 812 | c |
|---|
| 813 | RETURN |
|---|
| 814 | END |
|---|