[2142] | 1 | |
---|
[1673] | 2 | ! $Id$ |
---|
[2142] | 3 | |
---|
[2221] | 4 | SUBROUTINE conf_gcm( tapedef, etatinit ) |
---|
[2142] | 5 | |
---|
| 6 | USE control_mod |
---|
[1632] | 7 | #ifdef CPP_IOIPSL |
---|
[4368] | 8 | USE IOIPSL |
---|
[1632] | 9 | #else |
---|
[2142] | 10 | ! if not using IOIPSL, we still need to use (a local version of) getin |
---|
[4368] | 11 | USE ioipsl_getincom |
---|
[1632] | 12 | #endif |
---|
[4368] | 13 | USE misc_mod |
---|
| 14 | USE mod_filtre_fft, ONLY: use_filtre_fft |
---|
| 15 | USE mod_filtre_fft_loc, ONLY: use_filtre_fft_loc=>use_filtre_fft |
---|
| 16 | USE mod_hallo, ONLY: use_mpi_alloc |
---|
| 17 | USE infotrac, ONLY: type_trac |
---|
| 18 | USE assert_m, ONLY: assert |
---|
[2597] | 19 | USE comconst_mod, ONLY: dissip_deltaz, dissip_factz, dissip_zref, & |
---|
| 20 | iflag_top_bound, mode_top_bound, tau_top_bound, & |
---|
| 21 | ngroup |
---|
[2603] | 22 | USE logic_mod, ONLY: fxyhypb, iflag_phys, ok_etat0, ok_gradsfile, & |
---|
| 23 | ok_guide, ok_limit, ok_strato, purmats, read_start, & |
---|
[2665] | 24 | ysinus, read_orop |
---|
[2598] | 25 | USE serre_mod, ONLY: clon,clat,grossismx,grossismy,dzoomx,dzoomy, & |
---|
| 26 | alphax,alphay,taux,tauy |
---|
[3605] | 27 | USE temps_mod, ONLY: calend, year_len |
---|
[1699] | 28 | |
---|
[2142] | 29 | IMPLICIT NONE |
---|
| 30 | !----------------------------------------------------------------------- |
---|
| 31 | ! Auteurs : L. Fairhead , P. Le Van . |
---|
[1632] | 32 | |
---|
[2142] | 33 | ! Arguments : |
---|
[1632] | 34 | |
---|
[2142] | 35 | ! tapedef : |
---|
| 36 | ! etatinit : = TRUE , on ne compare pas les valeurs des para- |
---|
| 37 | ! -metres du zoom avec celles lues sur le fichier start . |
---|
[1632] | 38 | |
---|
[2221] | 39 | LOGICAL,INTENT(IN) :: etatinit |
---|
| 40 | INTEGER,INTENT(IN) :: tapedef |
---|
[2141] | 41 | |
---|
[2142] | 42 | ! Declarations : |
---|
| 43 | ! -------------- |
---|
| 44 | include "dimensions.h" |
---|
| 45 | include "paramet.h" |
---|
| 46 | include "comdissnew.h" |
---|
| 47 | include "iniprint.h" |
---|
| 48 | |
---|
| 49 | ! local: |
---|
| 50 | ! ------ |
---|
| 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 |
---|
[4368] | 57 | CHARACTER(len=*), PARAMETER :: modname="conf_gcm" |
---|
| 58 | CHARACTER(len=80) :: abort_message |
---|
[1734] | 59 | #ifdef CPP_OMP |
---|
[4368] | 60 | INTEGER, EXTERNAL :: OMP_GET_NUM_THREADS |
---|
[1734] | 61 | #endif |
---|
| 62 | |
---|
[2142] | 63 | ! ------------------------------------------------------------------- |
---|
[1734] | 64 | |
---|
[2142] | 65 | ! ......... Version du 29/04/97 .......... |
---|
[1632] | 66 | |
---|
[2142] | 67 | ! Nouveaux parametres nitergdiv,nitergrot,niterh,tetagdiv,tetagrot, |
---|
| 68 | ! tetatemp ajoutes pour la dissipation . |
---|
[1632] | 69 | |
---|
[2142] | 70 | ! Autre parametre ajoute en fin de liste de tapedef : ** fxyhypb ** |
---|
[1632] | 71 | |
---|
[2142] | 72 | ! Si fxyhypb = .TRUE. , choix de la fonction a derivee tangente hyperb. |
---|
| 73 | ! Sinon , choix de fxynew , a derivee sinusoidale .. |
---|
[1632] | 74 | |
---|
[2142] | 75 | ! ...... etatinit = . TRUE. si defrun est appele dans ETAT0_LMD ou |
---|
| 76 | ! LIMIT_LMD pour l'initialisation de start.dat (dic) et |
---|
| 77 | ! de limit.dat ( dic) ........... |
---|
| 78 | ! Sinon etatinit = . FALSE . |
---|
[1632] | 79 | |
---|
[2142] | 80 | ! Donc etatinit = .F. si on veut comparer les valeurs de grossismx , |
---|
| 81 | ! grossismy,clon,clat, fxyhypb lues sur le fichier start avec |
---|
| 82 | ! celles passees par run.def , au debut du gcm, apres l'appel a |
---|
| 83 | ! lectba . |
---|
| 84 | ! Ces parmetres definissant entre autres la grille et doivent etre |
---|
| 85 | ! pareils et coherents , sinon il y aura divergence du gcm . |
---|
[1632] | 86 | |
---|
[2142] | 87 | !----------------------------------------------------------------------- |
---|
| 88 | ! initialisations: |
---|
| 89 | ! ---------------- |
---|
[2083] | 90 | |
---|
[2142] | 91 | !Config Key = lunout |
---|
| 92 | !Config Desc = unite de fichier pour les impressions |
---|
| 93 | !Config Def = 6 |
---|
| 94 | !Config Help = unite de fichier pour les impressions |
---|
| 95 | !Config (defaut sortie standard = 6) |
---|
| 96 | lunout=6 |
---|
| 97 | CALL getin('lunout', lunout) |
---|
| 98 | IF (lunout /= 5 .and. lunout /= 6) THEN |
---|
| 99 | OPEN(UNIT=lunout,FILE='lmdz.out_0000',ACTION='write', & |
---|
| 100 | STATUS='unknown',FORM='formatted') |
---|
| 101 | ENDIF |
---|
[1632] | 102 | |
---|
[2142] | 103 | adjust=.false. |
---|
[4368] | 104 | CALL getin('adjust',adjust) |
---|
[1673] | 105 | |
---|
[2142] | 106 | #ifdef CPP_OMP |
---|
| 107 | ! adjust=y not implemented in case of OpenMP threads... |
---|
| 108 | !$OMP PARALLEL |
---|
[4368] | 109 | IF ((OMP_GET_NUM_THREADS()>1).and.adjust) then |
---|
[2142] | 110 | write(lunout,*)'conf_gcm: Error, adjust should be set to n' & |
---|
| 111 | ,' when running with OpenMP threads' |
---|
| 112 | abort_message = 'Wrong value for adjust' |
---|
[4368] | 113 | CALL abort_gcm(modname,abort_message,1) |
---|
| 114 | ENDIF |
---|
[2142] | 115 | !$OMP END PARALLEL |
---|
| 116 | #endif |
---|
[1632] | 117 | |
---|
[2142] | 118 | itaumax=0 |
---|
[4368] | 119 | CALL getin('itaumax',itaumax); |
---|
| 120 | IF (itaumax<=0) itaumax=HUGE(itaumax) |
---|
[1657] | 121 | |
---|
[2142] | 122 | !Config Key = prt_level |
---|
| 123 | !Config Desc = niveau d'impressions de débogage |
---|
| 124 | !Config Def = 0 |
---|
| 125 | !Config Help = Niveau d'impression pour le débogage |
---|
| 126 | !Config (0 = minimum d'impression) |
---|
| 127 | prt_level = 0 |
---|
| 128 | CALL getin('prt_level',prt_level) |
---|
[1632] | 129 | |
---|
[2142] | 130 | !----------------------------------------------------------------------- |
---|
| 131 | ! Parametres de controle du run: |
---|
| 132 | !----------------------------------------------------------------------- |
---|
| 133 | !Config Key = planet_type |
---|
| 134 | !Config Desc = planet type ("earth", "mars", "venus", ...) |
---|
| 135 | !Config Def = earth |
---|
| 136 | !Config Help = this flag sets the type of atymosphere that is considered |
---|
| 137 | planet_type="earth" |
---|
| 138 | CALL getin('planet_type',planet_type) |
---|
[1632] | 139 | |
---|
[2142] | 140 | !Config Key = calend |
---|
| 141 | !Config Desc = type de calendrier utilise |
---|
| 142 | !Config Def = earth_360d |
---|
| 143 | !Config Help = valeur possible: earth_360d, earth_365d, earth_366d |
---|
| 144 | !Config |
---|
| 145 | calend = 'earth_360d' |
---|
[3605] | 146 | ! initialize year_len for aquaplanets and 1D |
---|
[2142] | 147 | CALL getin('calend', calend) |
---|
[4368] | 148 | IF (calend == 'earth_360d') THEN |
---|
| 149 | year_len=360 |
---|
| 150 | ELSE IF (calend == 'earth_365d') THEN |
---|
| 151 | year_len=365 |
---|
| 152 | ELSE IF (calend == 'earth_366d') THEN |
---|
| 153 | year_len=366 |
---|
| 154 | ELSE |
---|
| 155 | year_len=1 |
---|
| 156 | ENDIF |
---|
[1632] | 157 | |
---|
[2142] | 158 | !Config Key = dayref |
---|
| 159 | !Config Desc = Jour de l'etat initial |
---|
| 160 | !Config Def = 1 |
---|
| 161 | !Config Help = Jour de l'etat initial ( = 350 si 20 Decembre , |
---|
| 162 | !Config par expl. ,comme ici ) ... A completer |
---|
| 163 | dayref=1 |
---|
| 164 | CALL getin('dayref', dayref) |
---|
[1632] | 165 | |
---|
[2142] | 166 | !Config Key = anneeref |
---|
| 167 | !Config Desc = Annee de l'etat initial |
---|
| 168 | !Config Def = 1998 |
---|
| 169 | !Config Help = Annee de l'etat initial |
---|
| 170 | !Config ( avec 4 chiffres ) ... A completer |
---|
| 171 | anneeref = 1998 |
---|
| 172 | CALL getin('anneeref',anneeref) |
---|
[1632] | 173 | |
---|
[2142] | 174 | !Config Key = raz_date |
---|
| 175 | !Config Desc = Remise a zero de la date initiale |
---|
| 176 | !Config Def = 0 (pas de remise a zero) |
---|
| 177 | !Config Help = Remise a zero de la date initiale |
---|
| 178 | !Config 0 pas de remise a zero, on garde la date du fichier restart |
---|
| 179 | !Config 1 prise en compte de la date de gcm.def avec remise a zero |
---|
| 180 | !Config des compteurs de pas de temps |
---|
| 181 | raz_date = 0 |
---|
| 182 | CALL getin('raz_date', raz_date) |
---|
[1632] | 183 | |
---|
[2142] | 184 | !Config Key = resetvarc |
---|
| 185 | !Config Desc = Reinit des variables de controle |
---|
| 186 | !Config Def = n |
---|
| 187 | !Config Help = Reinit des variables de controle |
---|
| 188 | resetvarc = .false. |
---|
| 189 | CALL getin('resetvarc',resetvarc) |
---|
[1632] | 190 | |
---|
[2142] | 191 | !Config Key = nday |
---|
| 192 | !Config Desc = Nombre de jours d'integration |
---|
| 193 | !Config Def = 10 |
---|
| 194 | !Config Help = Nombre de jours d'integration |
---|
| 195 | !Config ... On pourait aussi permettre des mois ou des annees ! |
---|
| 196 | nday = 10 |
---|
| 197 | CALL getin('nday',nday) |
---|
[1632] | 198 | |
---|
[2142] | 199 | !Config Key = starttime |
---|
| 200 | !Config Desc = Heure de depart de la simulation |
---|
| 201 | !Config Def = 0 |
---|
| 202 | !Config Help = Heure de depart de la simulation |
---|
| 203 | !Config en jour |
---|
| 204 | starttime = 0 |
---|
| 205 | CALL getin('starttime',starttime) |
---|
[1632] | 206 | |
---|
[2142] | 207 | !Config Key = day_step |
---|
| 208 | !Config Desc = nombre de pas par jour |
---|
| 209 | !Config Def = 240 |
---|
| 210 | !Config Help = nombre de pas par jour (multiple de iperiod) ( |
---|
| 211 | !Config ici pour dt = 1 min ) |
---|
| 212 | day_step = 240 |
---|
| 213 | CALL getin('day_step',day_step) |
---|
[1632] | 214 | |
---|
[2142] | 215 | !Config Key = nsplit_phys |
---|
| 216 | nsplit_phys = 1 |
---|
| 217 | CALL getin('nsplit_phys',nsplit_phys) |
---|
[1632] | 218 | |
---|
[2142] | 219 | !Config Key = iperiod |
---|
| 220 | !Config Desc = periode pour le pas Matsuno |
---|
| 221 | !Config Def = 5 |
---|
| 222 | !Config Help = periode pour le pas Matsuno (en pas de temps) |
---|
| 223 | iperiod = 5 |
---|
| 224 | CALL getin('iperiod',iperiod) |
---|
[1632] | 225 | |
---|
[2142] | 226 | !Config Key = iapp_tracvl |
---|
| 227 | !Config Desc = frequence du groupement des flux |
---|
| 228 | !Config Def = iperiod |
---|
| 229 | !Config Help = frequence du groupement des flux (en pas de temps) |
---|
| 230 | iapp_tracvl = iperiod |
---|
| 231 | CALL getin('iapp_tracvl',iapp_tracvl) |
---|
[1632] | 232 | |
---|
[2142] | 233 | !Config Key = iconser |
---|
| 234 | !Config Desc = periode de sortie des variables de controle |
---|
| 235 | !Config Def = 240 |
---|
| 236 | !Config Help = periode de sortie des variables de controle |
---|
| 237 | !Config (En pas de temps) |
---|
| 238 | iconser = 240 |
---|
| 239 | CALL getin('iconser', iconser) |
---|
[1632] | 240 | |
---|
[2142] | 241 | !Config Key = iecri |
---|
| 242 | !Config Desc = periode d'ecriture du fichier histoire |
---|
| 243 | !Config Def = 1 |
---|
| 244 | !Config Help = periode d'ecriture du fichier histoire (en jour) |
---|
| 245 | iecri = 1 |
---|
| 246 | CALL getin('iecri',iecri) |
---|
[1632] | 247 | |
---|
[2142] | 248 | !Config Key = periodav |
---|
| 249 | !Config Desc = periode de stockage fichier histmoy |
---|
| 250 | !Config Def = 1 |
---|
| 251 | !Config Help = periode de stockage fichier histmoy (en jour) |
---|
| 252 | periodav = 1. |
---|
| 253 | CALL getin('periodav',periodav) |
---|
[1632] | 254 | |
---|
[2142] | 255 | !Config Key = output_grads_dyn |
---|
| 256 | !Config Desc = output dynamics diagnostics in 'dyn.dat' file |
---|
| 257 | !Config Def = n |
---|
| 258 | !Config Help = output dynamics diagnostics in Grads-readable 'dyn.dat' file |
---|
| 259 | output_grads_dyn=.false. |
---|
| 260 | CALL getin('output_grads_dyn',output_grads_dyn) |
---|
[1632] | 261 | |
---|
[2142] | 262 | !Config Key = dissip_period |
---|
| 263 | !Config Desc = periode de la dissipation |
---|
| 264 | !Config Def = 0 |
---|
| 265 | !Config Help = periode de la dissipation |
---|
| 266 | !Config dissip_period=0 => la valeur sera calcule dans inidissip |
---|
| 267 | !Config dissip_period>0 => on prend cette valeur |
---|
| 268 | dissip_period = 0 |
---|
| 269 | CALL getin('dissip_period',dissip_period) |
---|
[1632] | 270 | |
---|
[2142] | 271 | !cc .... P. Le Van , modif le 29/04/97 .pour la dissipation ... |
---|
| 272 | !cc |
---|
[1632] | 273 | |
---|
[2142] | 274 | !Config Key = lstardis |
---|
| 275 | !Config Desc = choix de l'operateur de dissipation |
---|
| 276 | !Config Def = y |
---|
| 277 | !Config Help = choix de l'operateur de dissipation |
---|
| 278 | !Config 'y' si on veut star et 'n' si on veut non-start ! |
---|
| 279 | !Config Moi y en a pas comprendre ! |
---|
| 280 | lstardis = .TRUE. |
---|
| 281 | CALL getin('lstardis',lstardis) |
---|
[1632] | 282 | |
---|
[2142] | 283 | !Config Key = nitergdiv |
---|
| 284 | !Config Desc = Nombre d'iteration de gradiv |
---|
| 285 | !Config Def = 1 |
---|
| 286 | !Config Help = nombre d'iterations de l'operateur de dissipation |
---|
| 287 | !Config gradiv |
---|
| 288 | nitergdiv = 1 |
---|
| 289 | CALL getin('nitergdiv',nitergdiv) |
---|
[1632] | 290 | |
---|
[2142] | 291 | !Config Key = nitergrot |
---|
| 292 | !Config Desc = nombre d'iterations de nxgradrot |
---|
| 293 | !Config Def = 2 |
---|
| 294 | !Config Help = nombre d'iterations de l'operateur de dissipation |
---|
| 295 | !Config nxgradrot |
---|
| 296 | nitergrot = 2 |
---|
| 297 | CALL getin('nitergrot',nitergrot) |
---|
[1793] | 298 | |
---|
[2142] | 299 | !Config Key = niterh |
---|
| 300 | !Config Desc = nombre d'iterations de divgrad |
---|
| 301 | !Config Def = 2 |
---|
| 302 | !Config Help = nombre d'iterations de l'operateur de dissipation |
---|
| 303 | !Config divgrad |
---|
| 304 | niterh = 2 |
---|
| 305 | CALL getin('niterh',niterh) |
---|
[1793] | 306 | |
---|
[2142] | 307 | !Config Key = tetagdiv |
---|
| 308 | !Config Desc = temps de dissipation pour div |
---|
| 309 | !Config Def = 7200 |
---|
| 310 | !Config Help = temps de dissipation des plus petites longeur |
---|
| 311 | !Config d'ondes pour u,v (gradiv) |
---|
| 312 | tetagdiv = 7200. |
---|
| 313 | CALL getin('tetagdiv',tetagdiv) |
---|
[1632] | 314 | |
---|
[2142] | 315 | !Config Key = tetagrot |
---|
| 316 | !Config Desc = temps de dissipation pour grad |
---|
| 317 | !Config Def = 7200 |
---|
| 318 | !Config Help = temps de dissipation des plus petites longeur |
---|
| 319 | !Config d'ondes pour u,v (nxgradrot) |
---|
| 320 | tetagrot = 7200. |
---|
| 321 | CALL getin('tetagrot',tetagrot) |
---|
[1632] | 322 | |
---|
[2142] | 323 | !Config Key = tetatemp |
---|
| 324 | !Config Desc = temps de dissipation pour h |
---|
| 325 | !Config Def = 7200 |
---|
| 326 | !Config Help = temps de dissipation des plus petites longeur |
---|
| 327 | !Config d'ondes pour h (divgrad) |
---|
| 328 | tetatemp = 7200. |
---|
| 329 | CALL getin('tetatemp',tetatemp ) |
---|
[1632] | 330 | |
---|
[2142] | 331 | ! Parametres controlant la variation sur la verticale des constantes de |
---|
| 332 | ! dissipation. |
---|
| 333 | ! Pour le moment actifs uniquement dans la version a 39 niveaux |
---|
| 334 | ! avec ok_strato=y |
---|
[1632] | 335 | |
---|
[2142] | 336 | dissip_factz=4. |
---|
| 337 | dissip_deltaz=10. |
---|
| 338 | dissip_zref=30. |
---|
| 339 | CALL getin('dissip_factz',dissip_factz ) |
---|
| 340 | CALL getin('dissip_deltaz',dissip_deltaz ) |
---|
| 341 | CALL getin('dissip_zref',dissip_zref ) |
---|
[1632] | 342 | |
---|
[2442] | 343 | ! ngroup |
---|
| 344 | ngroup=3 |
---|
| 345 | CALL getin('ngroup',ngroup) |
---|
[4368] | 346 | IF (mod(iim, 2**ngroup) /= 0) & |
---|
[3809] | 347 | call abort_gcm("conf_gcm", 'iim must be multiple of 2**ngroup', 1) |
---|
[4368] | 348 | IF (2**ngroup > jjm + 1) & |
---|
[3809] | 349 | call abort_gcm("conf_gcm", '2**ngroup must be <= jjm + 1', 1) |
---|
[2442] | 350 | |
---|
| 351 | ! mode_top_bound : fields towards which sponge relaxation will be done: |
---|
[2142] | 352 | ! top_bound sponge: only active if ok_strato=.true. and iflag_top_bound!=0 |
---|
| 353 | ! iflag_top_bound=0 for no sponge |
---|
| 354 | ! iflag_top_bound=1 for sponge over 4 topmost layers |
---|
| 355 | ! iflag_top_bound=2 for sponge from top to ~1% of top layer pressure |
---|
| 356 | iflag_top_bound=1 |
---|
| 357 | CALL getin('iflag_top_bound',iflag_top_bound) |
---|
[4368] | 358 | IF (iflag_top_bound < 0 .or. iflag_top_bound > 2) & |
---|
| 359 | call abort_gcm("conf_gcm", 'iflag_top_bound must be 0, 1 or 2', 1) |
---|
[1632] | 360 | |
---|
[2142] | 361 | ! mode_top_bound : fields towards which sponge relaxation will be done: |
---|
| 362 | ! mode_top_bound=0: no relaxation |
---|
| 363 | ! mode_top_bound=1: u and v relax towards 0 |
---|
| 364 | ! mode_top_bound=2: u and v relax towards their zonal mean |
---|
| 365 | ! mode_top_bound=3: u,v and pot. temp. relax towards their zonal mean |
---|
| 366 | mode_top_bound=3 |
---|
| 367 | CALL getin('mode_top_bound',mode_top_bound) |
---|
[1632] | 368 | |
---|
[2142] | 369 | ! top_bound sponge : inverse of charactericstic relaxation time scale for sponge |
---|
| 370 | tau_top_bound=1.e-5 |
---|
| 371 | CALL getin('tau_top_bound',tau_top_bound) |
---|
[1632] | 372 | |
---|
[2142] | 373 | !Config Key = coefdis |
---|
| 374 | !Config Desc = coefficient pour gamdissip |
---|
| 375 | !Config Def = 0 |
---|
| 376 | !Config Help = coefficient pour gamdissip |
---|
| 377 | coefdis = 0. |
---|
| 378 | CALL getin('coefdis',coefdis) |
---|
[1632] | 379 | |
---|
[2142] | 380 | !Config Key = purmats |
---|
| 381 | !Config Desc = Schema d'integration |
---|
| 382 | !Config Def = n |
---|
| 383 | !Config Help = Choix du schema d'integration temporel. |
---|
| 384 | !Config y = pure Matsuno sinon c'est du Matsuno-leapfrog |
---|
| 385 | purmats = .FALSE. |
---|
| 386 | CALL getin('purmats',purmats) |
---|
[2141] | 387 | |
---|
[2142] | 388 | !Config Key = ok_guide |
---|
| 389 | !Config Desc = Guidage |
---|
| 390 | !Config Def = n |
---|
| 391 | !Config Help = Guidage |
---|
| 392 | ok_guide = .FALSE. |
---|
| 393 | CALL getin('ok_guide',ok_guide) |
---|
[1632] | 394 | |
---|
[4368] | 395 | IF (ok_guide .and. adjust) call abort_gcm("conf_gcm", & |
---|
[2142] | 396 | "adjust does not work with ok_guide", 1) |
---|
[1632] | 397 | |
---|
[2142] | 398 | !Config Key = read_start |
---|
| 399 | !Config Desc = Initialize model using a 'start.nc' file |
---|
| 400 | !Config Def = y |
---|
| 401 | !Config Help = y: intialize dynamical fields using a 'start.nc' file |
---|
| 402 | ! n: fields are initialized by 'iniacademic' routine |
---|
| 403 | read_start= .true. |
---|
| 404 | CALL getin('read_start',read_start) |
---|
[1632] | 405 | |
---|
[2142] | 406 | !Config Key = iflag_phys |
---|
| 407 | !Config Desc = Avec ls physique |
---|
| 408 | !Config Def = 1 |
---|
| 409 | !Config Help = Permet de faire tourner le modele sans |
---|
| 410 | !Config physique. |
---|
| 411 | iflag_phys = 1 |
---|
| 412 | CALL getin('iflag_phys',iflag_phys) |
---|
[1632] | 413 | |
---|
[2142] | 414 | !Config Key = iphysiq |
---|
| 415 | !Config Desc = Periode de la physique |
---|
| 416 | !Config Def = 5 |
---|
| 417 | !Config Help = Periode de la physique en pas de temps de la dynamique. |
---|
| 418 | iphysiq = 5 |
---|
| 419 | CALL getin('iphysiq', iphysiq) |
---|
[1632] | 420 | |
---|
[2142] | 421 | !Config Key = ip_ebil_dyn |
---|
| 422 | !Config Desc = PRINT level for energy conserv. diag. |
---|
| 423 | !Config Def = 0 |
---|
| 424 | !Config Help = PRINT level for energy conservation diag. ; |
---|
| 425 | ! les options suivantes existent : |
---|
| 426 | !Config 0 pas de print |
---|
| 427 | !Config 1 pas de print |
---|
| 428 | !Config 2 print, |
---|
| 429 | ip_ebil_dyn = 0 |
---|
| 430 | CALL getin('ip_ebil_dyn',ip_ebil_dyn) |
---|
| 431 | |
---|
| 432 | !cc .... P. Le Van , ajout le 7/03/95 .pour le zoom ... |
---|
| 433 | ! ......... ( modif le 17/04/96 ) ......... |
---|
| 434 | |
---|
| 435 | test_etatinit: IF (.not. etatinit) then |
---|
| 436 | !Config Key = clon |
---|
| 437 | !Config Desc = centre du zoom, longitude |
---|
| 438 | !Config Def = 0 |
---|
| 439 | !Config Help = longitude en degres du centre |
---|
| 440 | !Config du zoom |
---|
| 441 | clonn = 0. |
---|
| 442 | CALL getin('clon',clonn) |
---|
| 443 | |
---|
| 444 | !Config Key = clat |
---|
| 445 | !Config Desc = centre du zoom, latitude |
---|
| 446 | !Config Def = 0 |
---|
| 447 | !Config Help = latitude en degres du centre du zoom |
---|
| 448 | !Config |
---|
| 449 | clatt = 0. |
---|
| 450 | CALL getin('clat',clatt) |
---|
| 451 | |
---|
| 452 | IF( ABS(clat - clatt).GE. 0.001 ) THEN |
---|
| 453 | write(lunout,*)'conf_gcm: La valeur de clat passee par run.def', & |
---|
| 454 | ' est differente de celle lue sur le fichier start ' |
---|
[1632] | 455 | STOP |
---|
[2142] | 456 | ENDIF |
---|
[1632] | 457 | |
---|
[2142] | 458 | !Config Key = grossismx |
---|
| 459 | !Config Desc = zoom en longitude |
---|
| 460 | !Config Def = 1.0 |
---|
| 461 | !Config Help = facteur de grossissement du zoom, |
---|
| 462 | !Config selon la longitude |
---|
| 463 | grossismxx = 1.0 |
---|
| 464 | CALL getin('grossismx',grossismxx) |
---|
[1632] | 465 | |
---|
[2142] | 466 | IF( ABS(grossismx - grossismxx).GE. 0.001 ) THEN |
---|
| 467 | write(lunout,*)'conf_gcm: La valeur de grossismx passee par ', & |
---|
| 468 | 'run.def est differente de celle lue sur le fichier start ' |
---|
| 469 | STOP |
---|
| 470 | ENDIF |
---|
[1632] | 471 | |
---|
[2142] | 472 | !Config Key = grossismy |
---|
| 473 | !Config Desc = zoom en latitude |
---|
| 474 | !Config Def = 1.0 |
---|
| 475 | !Config Help = facteur de grossissement du zoom, |
---|
| 476 | !Config selon la latitude |
---|
| 477 | grossismyy = 1.0 |
---|
| 478 | CALL getin('grossismy',grossismyy) |
---|
| 479 | |
---|
| 480 | IF( ABS(grossismy - grossismyy).GE. 0.001 ) THEN |
---|
| 481 | write(lunout,*)'conf_gcm: La valeur de grossismy passee par ', & |
---|
| 482 | 'run.def est differente de celle lue sur le fichier start ' |
---|
[1632] | 483 | STOP |
---|
[2142] | 484 | ENDIF |
---|
[1632] | 485 | |
---|
[2142] | 486 | IF( grossismx.LT.1. ) THEN |
---|
| 487 | write(lunout,*) & |
---|
| 488 | 'conf_gcm: *** ATTENTION !! grossismx < 1 . *** ' |
---|
| 489 | STOP |
---|
| 490 | ELSE |
---|
| 491 | alphax = 1. - 1./ grossismx |
---|
| 492 | ENDIF |
---|
[1632] | 493 | |
---|
[2142] | 494 | IF( grossismy.LT.1. ) THEN |
---|
| 495 | write(lunout,*) & |
---|
| 496 | 'conf_gcm: *** ATTENTION !! grossismy < 1 . *** ' |
---|
[1632] | 497 | STOP |
---|
[2142] | 498 | ELSE |
---|
| 499 | alphay = 1. - 1./ grossismy |
---|
| 500 | ENDIF |
---|
[1632] | 501 | |
---|
[2142] | 502 | write(lunout,*)'conf_gcm: alphax alphay',alphax,alphay |
---|
[1632] | 503 | |
---|
[2142] | 504 | ! alphax et alphay sont les anciennes formulat. des grossissements |
---|
[1632] | 505 | |
---|
[2142] | 506 | !Config Key = fxyhypb |
---|
| 507 | !Config Desc = Fonction hyperbolique |
---|
| 508 | !Config Def = y |
---|
| 509 | !Config Help = Fonction f(y) hyperbolique si = .true. |
---|
| 510 | !Config sinon sinusoidale |
---|
| 511 | fxyhypbb = .TRUE. |
---|
| 512 | CALL getin('fxyhypb',fxyhypbb) |
---|
[1632] | 513 | |
---|
[2142] | 514 | IF( .NOT.fxyhypb ) THEN |
---|
| 515 | IF( fxyhypbb ) THEN |
---|
| 516 | write(lunout,*)' ******** PBS DANS CONF_GCM ******** ' |
---|
| 517 | write(lunout,*)' *** fxyhypb lu sur le fichier start est ', & |
---|
| 518 | 'F alors qu il est T sur run.def ***' |
---|
| 519 | STOP |
---|
| 520 | ENDIF |
---|
| 521 | ELSE |
---|
| 522 | IF( .NOT.fxyhypbb ) THEN |
---|
| 523 | write(lunout,*)' ******** PBS DANS CONF_GCM ******** ' |
---|
| 524 | write(lunout,*)' *** fxyhypb lu sur le fichier start est ', & |
---|
| 525 | 'T alors qu il est F sur run.def **** ' |
---|
| 526 | STOP |
---|
| 527 | ENDIF |
---|
| 528 | ENDIF |
---|
[1632] | 529 | |
---|
[2142] | 530 | !Config Key = dzoomx |
---|
| 531 | !Config Desc = extension en longitude |
---|
| 532 | !Config Def = 0 |
---|
| 533 | !Config Help = extension en longitude de la zone du zoom |
---|
| 534 | !Config ( fraction de la zone totale) |
---|
| 535 | dzoomxx = 0.0 |
---|
| 536 | CALL getin('dzoomx',dzoomxx) |
---|
[1632] | 537 | |
---|
[2142] | 538 | IF( fxyhypb ) THEN |
---|
| 539 | IF( ABS(dzoomx - dzoomxx).GE. 0.001 ) THEN |
---|
| 540 | write(lunout,*)'conf_gcm: La valeur de dzoomx passee par ', & |
---|
| 541 | 'run.def est differente de celle lue sur le fichier start ' |
---|
| 542 | STOP |
---|
| 543 | ENDIF |
---|
| 544 | ENDIF |
---|
[1632] | 545 | |
---|
[2142] | 546 | !Config Key = dzoomy |
---|
| 547 | !Config Desc = extension en latitude |
---|
| 548 | !Config Def = 0 |
---|
| 549 | !Config Help = extension en latitude de la zone du zoom |
---|
| 550 | !Config ( fraction de la zone totale) |
---|
| 551 | dzoomyy = 0.0 |
---|
| 552 | CALL getin('dzoomy',dzoomyy) |
---|
[1632] | 553 | |
---|
[2142] | 554 | IF( fxyhypb ) THEN |
---|
| 555 | IF( ABS(dzoomy - dzoomyy).GE. 0.001 ) THEN |
---|
| 556 | write(lunout,*)'conf_gcm: La valeur de dzoomy passee par ', & |
---|
| 557 | 'run.def est differente de celle lue sur le fichier start ' |
---|
| 558 | STOP |
---|
| 559 | ENDIF |
---|
| 560 | ENDIF |
---|
[1632] | 561 | |
---|
[2142] | 562 | !Config Key = taux |
---|
| 563 | !Config Desc = raideur du zoom en X |
---|
| 564 | !Config Def = 3 |
---|
| 565 | !Config Help = raideur du zoom en X |
---|
| 566 | tauxx = 3.0 |
---|
| 567 | CALL getin('taux',tauxx) |
---|
[1632] | 568 | |
---|
[2142] | 569 | IF( fxyhypb ) THEN |
---|
| 570 | IF( ABS(taux - tauxx).GE. 0.001 ) THEN |
---|
| 571 | write(lunout,*)'conf_gcm: La valeur de taux passee par ', & |
---|
| 572 | 'run.def est differente de celle lue sur le fichier start ' |
---|
| 573 | STOP |
---|
| 574 | ENDIF |
---|
| 575 | ENDIF |
---|
[1632] | 576 | |
---|
[2142] | 577 | !Config Key = tauyy |
---|
| 578 | !Config Desc = raideur du zoom en Y |
---|
| 579 | !Config Def = 3 |
---|
| 580 | !Config Help = raideur du zoom en Y |
---|
| 581 | tauyy = 3.0 |
---|
| 582 | CALL getin('tauy',tauyy) |
---|
[1632] | 583 | |
---|
[2142] | 584 | IF( fxyhypb ) THEN |
---|
| 585 | IF( ABS(tauy - tauyy).GE. 0.001 ) THEN |
---|
| 586 | write(lunout,*)'conf_gcm: La valeur de tauy passee par ', & |
---|
| 587 | 'run.def est differente de celle lue sur le fichier start ' |
---|
| 588 | STOP |
---|
| 589 | ENDIF |
---|
| 590 | ENDIF |
---|
[1632] | 591 | |
---|
[2142] | 592 | !c |
---|
| 593 | IF( .NOT.fxyhypb ) THEN |
---|
[1632] | 594 | |
---|
[2142] | 595 | !Config Key = ysinus |
---|
| 596 | !Config IF = !fxyhypb |
---|
| 597 | !Config Desc = Fonction en Sinus |
---|
| 598 | !Config Def = y |
---|
| 599 | !Config Help = Fonction f(y) avec y = Sin(latit.) si = .true. |
---|
| 600 | !Config sinon y = latit. |
---|
| 601 | ysinuss = .TRUE. |
---|
| 602 | CALL getin('ysinus',ysinuss) |
---|
| 603 | |
---|
[1632] | 604 | IF( .NOT.ysinus ) THEN |
---|
[2142] | 605 | IF( ysinuss ) THEN |
---|
| 606 | write(lunout,*)' ******** PBS DANS CONF_GCM ******** ' |
---|
| 607 | write(lunout,*)' *** ysinus lu sur le fichier start est F', & |
---|
| 608 | ' alors qu il est T sur run.def ***' |
---|
| 609 | STOP |
---|
| 610 | ENDIF |
---|
[1632] | 611 | ELSE |
---|
[2142] | 612 | IF( .NOT.ysinuss ) THEN |
---|
| 613 | write(lunout,*)' ******** PBS DANS CONF_GCM ******** ' |
---|
| 614 | write(lunout,*)' *** ysinus lu sur le fichier start est T', & |
---|
| 615 | ' alors qu il est F sur run.def **** ' |
---|
[1632] | 616 | STOP |
---|
[2142] | 617 | ENDIF |
---|
[1632] | 618 | ENDIF |
---|
[2142] | 619 | ENDIF ! of IF( .NOT.fxyhypb ) |
---|
[1632] | 620 | |
---|
[2142] | 621 | !Config Key = offline |
---|
| 622 | !Config Desc = Nouvelle eau liquide |
---|
| 623 | !Config Def = n |
---|
| 624 | !Config Help = Permet de mettre en route la |
---|
| 625 | !Config nouvelle parametrisation de l'eau liquide ! |
---|
| 626 | offline = .FALSE. |
---|
| 627 | CALL getin('offline',offline) |
---|
| 628 | IF (offline .AND. adjust) THEN |
---|
| 629 | WRITE(lunout,*) & |
---|
| 630 | 'WARNING : option offline does not work with adjust=y :' |
---|
| 631 | WRITE(lunout,*) 'the files defstoke.nc, fluxstoke.nc ', & |
---|
| 632 | 'and fluxstokev.nc will not be created' |
---|
| 633 | WRITE(lunout,*) & |
---|
| 634 | 'only the file phystoke.nc will still be created ' |
---|
[4368] | 635 | ENDIF |
---|
[1632] | 636 | |
---|
[2142] | 637 | !Config Key = type_trac |
---|
| 638 | !Config Desc = Choix de couplage avec model de chimie INCA ou REPROBUS |
---|
| 639 | !Config Def = lmdz |
---|
| 640 | !Config Help = |
---|
| 641 | !Config 'lmdz' = pas de couplage, pur LMDZ |
---|
| 642 | !Config 'inca' = model de chime INCA |
---|
| 643 | !Config 'repr' = model de chime REPROBUS |
---|
| 644 | type_trac = 'lmdz' |
---|
| 645 | CALL getin('type_trac',type_trac) |
---|
[1632] | 646 | |
---|
[2142] | 647 | !Config Key = ok_dynzon |
---|
| 648 | !Config Desc = calcul et sortie des transports |
---|
| 649 | !Config Def = n |
---|
| 650 | !Config Help = Permet de mettre en route le calcul des transports |
---|
| 651 | !Config |
---|
| 652 | ok_dynzon = .FALSE. |
---|
| 653 | CALL getin('ok_dynzon',ok_dynzon) |
---|
[1657] | 654 | |
---|
[2142] | 655 | !Config Key = ok_dyn_ins |
---|
| 656 | !Config Desc = sorties instantanees dans la dynamique |
---|
| 657 | !Config Def = n |
---|
| 658 | !Config Help = |
---|
| 659 | !Config |
---|
| 660 | ok_dyn_ins = .FALSE. |
---|
| 661 | CALL getin('ok_dyn_ins',ok_dyn_ins) |
---|
[1632] | 662 | |
---|
[2142] | 663 | !Config Key = ok_dyn_ave |
---|
| 664 | !Config Desc = sorties moyennes dans la dynamique |
---|
| 665 | !Config Def = n |
---|
| 666 | !Config Help = |
---|
| 667 | !Config |
---|
| 668 | ok_dyn_ave = .FALSE. |
---|
| 669 | CALL getin('ok_dyn_ave',ok_dyn_ave) |
---|
[1632] | 670 | |
---|
[4368] | 671 | !Config Key = ok_dyn_xios |
---|
| 672 | !Config Desc = sorties moyennes dans la dynamique |
---|
| 673 | !Config Def = n |
---|
| 674 | !Config Help = |
---|
| 675 | !Config |
---|
| 676 | ok_dyn_xios = .FALSE. |
---|
| 677 | CALL getin('ok_dyn_xios',ok_dyn_xios) |
---|
| 678 | |
---|
[2142] | 679 | write(lunout,*)' #########################################' |
---|
| 680 | write(lunout,*)' Configuration des parametres du gcm: ' |
---|
| 681 | write(lunout,*)' planet_type = ', planet_type |
---|
| 682 | write(lunout,*)' calend = ', calend |
---|
| 683 | write(lunout,*)' dayref = ', dayref |
---|
| 684 | write(lunout,*)' anneeref = ', anneeref |
---|
| 685 | write(lunout,*)' nday = ', nday |
---|
| 686 | write(lunout,*)' day_step = ', day_step |
---|
| 687 | write(lunout,*)' iperiod = ', iperiod |
---|
| 688 | write(lunout,*)' nsplit_phys = ', nsplit_phys |
---|
| 689 | write(lunout,*)' iconser = ', iconser |
---|
| 690 | write(lunout,*)' iecri = ', iecri |
---|
| 691 | write(lunout,*)' periodav = ', periodav |
---|
| 692 | write(lunout,*)' output_grads_dyn = ', output_grads_dyn |
---|
| 693 | write(lunout,*)' dissip_period = ', dissip_period |
---|
| 694 | write(lunout,*)' lstardis = ', lstardis |
---|
| 695 | write(lunout,*)' nitergdiv = ', nitergdiv |
---|
| 696 | write(lunout,*)' nitergrot = ', nitergrot |
---|
| 697 | write(lunout,*)' niterh = ', niterh |
---|
| 698 | write(lunout,*)' tetagdiv = ', tetagdiv |
---|
| 699 | write(lunout,*)' tetagrot = ', tetagrot |
---|
| 700 | write(lunout,*)' tetatemp = ', tetatemp |
---|
| 701 | write(lunout,*)' coefdis = ', coefdis |
---|
| 702 | write(lunout,*)' purmats = ', purmats |
---|
| 703 | write(lunout,*)' read_start = ', read_start |
---|
| 704 | write(lunout,*)' iflag_phys = ', iflag_phys |
---|
| 705 | write(lunout,*)' iphysiq = ', iphysiq |
---|
| 706 | write(lunout,*)' clonn = ', clonn |
---|
| 707 | write(lunout,*)' clatt = ', clatt |
---|
| 708 | write(lunout,*)' grossismx = ', grossismx |
---|
| 709 | write(lunout,*)' grossismy = ', grossismy |
---|
| 710 | write(lunout,*)' fxyhypbb = ', fxyhypbb |
---|
| 711 | write(lunout,*)' dzoomxx = ', dzoomxx |
---|
| 712 | write(lunout,*)' dzoomy = ', dzoomyy |
---|
| 713 | write(lunout,*)' tauxx = ', tauxx |
---|
| 714 | write(lunout,*)' tauyy = ', tauyy |
---|
| 715 | write(lunout,*)' offline = ', offline |
---|
| 716 | write(lunout,*)' type_trac = ', type_trac |
---|
| 717 | write(lunout,*)' ok_dynzon = ', ok_dynzon |
---|
| 718 | write(lunout,*)' ok_dyn_ins = ', ok_dyn_ins |
---|
| 719 | write(lunout,*)' ok_dyn_ave = ', ok_dyn_ave |
---|
[4368] | 720 | write(lunout,*)' ok_dyn_xios = ', ok_dyn_xios |
---|
[2142] | 721 | else |
---|
| 722 | !Config Key = clon |
---|
| 723 | !Config Desc = centre du zoom, longitude |
---|
| 724 | !Config Def = 0 |
---|
| 725 | !Config Help = longitude en degres du centre |
---|
| 726 | !Config du zoom |
---|
| 727 | clon = 0. |
---|
| 728 | CALL getin('clon',clon) |
---|
[1632] | 729 | |
---|
[2142] | 730 | !Config Key = clat |
---|
| 731 | !Config Desc = centre du zoom, latitude |
---|
| 732 | !Config Def = 0 |
---|
| 733 | !Config Help = latitude en degres du centre du zoom |
---|
| 734 | !Config |
---|
| 735 | clat = 0. |
---|
| 736 | CALL getin('clat',clat) |
---|
[1632] | 737 | |
---|
[2142] | 738 | !Config Key = grossismx |
---|
| 739 | !Config Desc = zoom en longitude |
---|
| 740 | !Config Def = 1.0 |
---|
| 741 | !Config Help = facteur de grossissement du zoom, |
---|
| 742 | !Config selon la longitude |
---|
| 743 | grossismx = 1.0 |
---|
| 744 | CALL getin('grossismx',grossismx) |
---|
[1632] | 745 | |
---|
[2142] | 746 | !Config Key = grossismy |
---|
| 747 | !Config Desc = zoom en latitude |
---|
| 748 | !Config Def = 1.0 |
---|
| 749 | !Config Help = facteur de grossissement du zoom, |
---|
| 750 | !Config selon la latitude |
---|
| 751 | grossismy = 1.0 |
---|
| 752 | CALL getin('grossismy',grossismy) |
---|
[1632] | 753 | |
---|
[2142] | 754 | IF( grossismx.LT.1. ) THEN |
---|
[4368] | 755 | write(lunout,*) 'conf_gcm: ***ATTENTION !! grossismx < 1 . *** ' |
---|
[2142] | 756 | STOP |
---|
| 757 | ELSE |
---|
| 758 | alphax = 1. - 1./ grossismx |
---|
| 759 | ENDIF |
---|
[1632] | 760 | |
---|
[2142] | 761 | IF( grossismy.LT.1. ) THEN |
---|
[2141] | 762 | write(lunout,*) 'conf_gcm: ***ATTENTION !! grossismy < 1 . *** ' |
---|
[2142] | 763 | STOP |
---|
| 764 | ELSE |
---|
| 765 | alphay = 1. - 1./ grossismy |
---|
| 766 | ENDIF |
---|
[1632] | 767 | |
---|
[4368] | 768 | write(lunout,*) 'conf_gcm: alphax alphay ',alphax,alphay |
---|
[1632] | 769 | |
---|
[2142] | 770 | ! alphax et alphay sont les anciennes formulat. des grossissements |
---|
[1632] | 771 | |
---|
[2142] | 772 | !Config Key = fxyhypb |
---|
| 773 | !Config Desc = Fonction hyperbolique |
---|
| 774 | !Config Def = y |
---|
| 775 | !Config Help = Fonction f(y) hyperbolique si = .true. |
---|
| 776 | !Config sinon sinusoidale |
---|
| 777 | fxyhypb = .TRUE. |
---|
| 778 | CALL getin('fxyhypb',fxyhypb) |
---|
[1632] | 779 | |
---|
[2142] | 780 | !Config Key = dzoomx |
---|
| 781 | !Config Desc = extension en longitude |
---|
| 782 | !Config Def = 0 |
---|
| 783 | !Config Help = extension en longitude de la zone du zoom |
---|
| 784 | !Config ( fraction de la zone totale) |
---|
[2218] | 785 | dzoomx = 0.2 |
---|
[2142] | 786 | CALL getin('dzoomx',dzoomx) |
---|
[2218] | 787 | call assert(dzoomx < 1, "conf_gcm: dzoomx must be < 1") |
---|
[1632] | 788 | |
---|
[2142] | 789 | !Config Key = dzoomy |
---|
| 790 | !Config Desc = extension en latitude |
---|
| 791 | !Config Def = 0 |
---|
| 792 | !Config Help = extension en latitude de la zone du zoom |
---|
| 793 | !Config ( fraction de la zone totale) |
---|
[2218] | 794 | dzoomy = 0.2 |
---|
[2142] | 795 | CALL getin('dzoomy',dzoomy) |
---|
[2218] | 796 | call assert(dzoomy < 1, "conf_gcm: dzoomy must be < 1") |
---|
[1632] | 797 | |
---|
[2142] | 798 | !Config Key = taux |
---|
| 799 | !Config Desc = raideur du zoom en X |
---|
| 800 | !Config Def = 3 |
---|
| 801 | !Config Help = raideur du zoom en X |
---|
| 802 | taux = 3.0 |
---|
| 803 | CALL getin('taux',taux) |
---|
[1632] | 804 | |
---|
[2142] | 805 | !Config Key = tauy |
---|
| 806 | !Config Desc = raideur du zoom en Y |
---|
| 807 | !Config Def = 3 |
---|
| 808 | !Config Help = raideur du zoom en Y |
---|
| 809 | tauy = 3.0 |
---|
| 810 | CALL getin('tauy',tauy) |
---|
[1632] | 811 | |
---|
[2142] | 812 | !Config Key = ysinus |
---|
| 813 | !Config IF = !fxyhypb |
---|
| 814 | !Config Desc = Fonction en Sinus |
---|
| 815 | !Config Def = y |
---|
| 816 | !Config Help = Fonction f(y) avec y = Sin(latit.) si = .true. |
---|
| 817 | !Config sinon y = latit. |
---|
| 818 | ysinus = .TRUE. |
---|
| 819 | CALL getin('ysinus',ysinus) |
---|
[1673] | 820 | |
---|
[2142] | 821 | !Config Key = offline |
---|
| 822 | !Config Desc = Nouvelle eau liquide |
---|
| 823 | !Config Def = n |
---|
| 824 | !Config Help = Permet de mettre en route la |
---|
| 825 | !Config nouvelle parametrisation de l'eau liquide ! |
---|
| 826 | offline = .FALSE. |
---|
| 827 | CALL getin('offline',offline) |
---|
| 828 | IF (offline .AND. adjust) THEN |
---|
| 829 | WRITE(lunout,*) & |
---|
| 830 | 'WARNING : option offline does not work with adjust=y :' |
---|
| 831 | WRITE(lunout,*) 'the files defstoke.nc, fluxstoke.nc ', & |
---|
| 832 | 'and fluxstokev.nc will not be created' |
---|
| 833 | WRITE(lunout,*) & |
---|
| 834 | 'only the file phystoke.nc will still be created ' |
---|
[4368] | 835 | ENDIF |
---|
[1632] | 836 | |
---|
[2142] | 837 | !Config Key = type_trac |
---|
| 838 | !Config Desc = Choix de couplage avec model de chimie INCA ou REPROBUS |
---|
| 839 | !Config Def = lmdz |
---|
| 840 | !Config Help = |
---|
| 841 | !Config 'lmdz' = pas de couplage, pur LMDZ |
---|
| 842 | !Config 'inca' = model de chime INCA |
---|
| 843 | !Config 'repr' = model de chime REPROBUS |
---|
| 844 | type_trac = 'lmdz' |
---|
| 845 | CALL getin('type_trac',type_trac) |
---|
[1632] | 846 | |
---|
[2142] | 847 | !Config Key = ok_dynzon |
---|
| 848 | !Config Desc = sortie des transports zonaux dans la dynamique |
---|
| 849 | !Config Def = n |
---|
| 850 | !Config Help = Permet de mettre en route le calcul des transports |
---|
| 851 | !Config |
---|
| 852 | ok_dynzon = .FALSE. |
---|
| 853 | CALL getin('ok_dynzon',ok_dynzon) |
---|
[1657] | 854 | |
---|
[2142] | 855 | !Config Key = ok_dyn_ins |
---|
| 856 | !Config Desc = sorties instantanees dans la dynamique |
---|
| 857 | !Config Def = n |
---|
| 858 | !Config Help = |
---|
| 859 | !Config |
---|
| 860 | ok_dyn_ins = .FALSE. |
---|
| 861 | CALL getin('ok_dyn_ins',ok_dyn_ins) |
---|
| 862 | |
---|
| 863 | !Config Key = ok_dyn_ave |
---|
| 864 | !Config Desc = sorties moyennes dans la dynamique |
---|
| 865 | !Config Def = n |
---|
| 866 | !Config Help = |
---|
| 867 | !Config |
---|
| 868 | ok_dyn_ave = .FALSE. |
---|
| 869 | CALL getin('ok_dyn_ave',ok_dyn_ave) |
---|
| 870 | |
---|
[4368] | 871 | !Config Key = ok_dyn_xios |
---|
| 872 | !Config Desc = sorties moyennes dans la dynamique |
---|
| 873 | !Config Def = n |
---|
| 874 | !Config Help = |
---|
| 875 | !Config |
---|
| 876 | ok_dyn_xios = .FALSE. |
---|
| 877 | CALL getin('ok_dyn_xios',ok_dyn_xios) |
---|
| 878 | |
---|
[2142] | 879 | !Config Key = use_filtre_fft |
---|
[2444] | 880 | !Config Desc = flag to activate FFTs for the filter |
---|
[2142] | 881 | !Config Def = false |
---|
[2444] | 882 | !Config Help = enables to use FFts to do the longitudinal polar |
---|
| 883 | !Config filtering around the poles. |
---|
[2142] | 884 | use_filtre_fft=.FALSE. |
---|
| 885 | CALL getin('use_filtre_fft',use_filtre_fft) |
---|
| 886 | IF (use_filtre_fft .AND. grossismx /= 1.0) THEN |
---|
[1632] | 887 | write(lunout,*)'WARNING !!! ' |
---|
[2444] | 888 | write(lunout,*)"A zoom in longitude is not compatible", & |
---|
| 889 | " with the FFT filter ", & |
---|
| 890 | "---> FFT filter deactivated" |
---|
[2142] | 891 | use_filtre_fft=.FALSE. |
---|
| 892 | ENDIF |
---|
[2444] | 893 | use_filtre_fft_loc=use_filtre_fft |
---|
[1632] | 894 | |
---|
[2142] | 895 | !Config Key = use_mpi_alloc |
---|
| 896 | !Config Desc = Utilise un buffer MPI en m�moire globale |
---|
| 897 | !Config Def = false |
---|
| 898 | !Config Help = permet d'activer l'utilisation d'un buffer MPI |
---|
| 899 | !Config en m�moire globale a l'aide de la fonction MPI_ALLOC. |
---|
| 900 | !Config Cela peut am�liorer la bande passante des transferts MPI |
---|
| 901 | !Config d'un facteur 2 |
---|
| 902 | use_mpi_alloc=.FALSE. |
---|
| 903 | CALL getin('use_mpi_alloc',use_mpi_alloc) |
---|
[1632] | 904 | |
---|
[2142] | 905 | !Config key = ok_strato |
---|
| 906 | !Config Desc = activation de la version strato |
---|
| 907 | !Config Def = .FALSE. |
---|
| 908 | !Config Help = active la version stratosphérique de LMDZ de F. Lott |
---|
[1632] | 909 | |
---|
[2142] | 910 | ok_strato=.FALSE. |
---|
| 911 | CALL getin('ok_strato',ok_strato) |
---|
[1699] | 912 | |
---|
[2142] | 913 | vert_prof_dissip = merge(1, 0, ok_strato .and. llm==39) |
---|
| 914 | CALL getin('vert_prof_dissip', vert_prof_dissip) |
---|
| 915 | call assert(vert_prof_dissip == 0 .or. vert_prof_dissip == 1, & |
---|
| 916 | "bad value for vert_prof_dissip") |
---|
[1632] | 917 | |
---|
[2142] | 918 | !Config Key = ok_gradsfile |
---|
| 919 | !Config Desc = activation des sorties grads du guidage |
---|
| 920 | !Config Def = n |
---|
| 921 | !Config Help = active les sorties grads du guidage |
---|
[1632] | 922 | |
---|
[2142] | 923 | ok_gradsfile = .FALSE. |
---|
| 924 | CALL getin('ok_gradsfile',ok_gradsfile) |
---|
[1658] | 925 | |
---|
[2142] | 926 | !Config Key = ok_limit |
---|
| 927 | !Config Desc = creation des fichiers limit dans create_etat0_limit |
---|
| 928 | !Config Def = y |
---|
| 929 | !Config Help = production du fichier limit.nc requise |
---|
[1658] | 930 | |
---|
[2142] | 931 | ok_limit = .TRUE. |
---|
| 932 | CALL getin('ok_limit',ok_limit) |
---|
[1658] | 933 | |
---|
[2142] | 934 | !Config Key = ok_etat0 |
---|
| 935 | !Config Desc = creation des fichiers etat0 dans create_etat0_limit |
---|
| 936 | !Config Def = y |
---|
| 937 | !Config Help = production des fichiers start.nc, startphy.nc requise |
---|
[1658] | 938 | |
---|
[2142] | 939 | ok_etat0 = .TRUE. |
---|
| 940 | CALL getin('ok_etat0',ok_etat0) |
---|
| 941 | |
---|
[2665] | 942 | !Config Key = read_orop |
---|
| 943 | !Config Desc = lecture du fichier de params orographiques sous maille |
---|
| 944 | !Config Def = f |
---|
| 945 | !Config Help = lecture fichier plutot que grid_noro |
---|
| 946 | |
---|
| 947 | read_orop = .FALSE. |
---|
| 948 | CALL getin('read_orop',read_orop) |
---|
| 949 | |
---|
[2142] | 950 | write(lunout,*)' #########################################' |
---|
[4368] | 951 | write(lunout,*)' Configuration des parametres de cel0_limit: ' |
---|
[2142] | 952 | write(lunout,*)' planet_type = ', planet_type |
---|
| 953 | write(lunout,*)' calend = ', calend |
---|
| 954 | write(lunout,*)' dayref = ', dayref |
---|
| 955 | write(lunout,*)' anneeref = ', anneeref |
---|
| 956 | write(lunout,*)' nday = ', nday |
---|
| 957 | write(lunout,*)' day_step = ', day_step |
---|
| 958 | write(lunout,*)' iperiod = ', iperiod |
---|
| 959 | write(lunout,*)' iconser = ', iconser |
---|
| 960 | write(lunout,*)' iecri = ', iecri |
---|
| 961 | write(lunout,*)' periodav = ', periodav |
---|
| 962 | write(lunout,*)' output_grads_dyn = ', output_grads_dyn |
---|
| 963 | write(lunout,*)' dissip_period = ', dissip_period |
---|
| 964 | write(lunout,*)' lstardis = ', lstardis |
---|
| 965 | write(lunout,*)' nitergdiv = ', nitergdiv |
---|
| 966 | write(lunout,*)' nitergrot = ', nitergrot |
---|
| 967 | write(lunout,*)' niterh = ', niterh |
---|
| 968 | write(lunout,*)' tetagdiv = ', tetagdiv |
---|
| 969 | write(lunout,*)' tetagrot = ', tetagrot |
---|
| 970 | write(lunout,*)' tetatemp = ', tetatemp |
---|
| 971 | write(lunout,*)' coefdis = ', coefdis |
---|
| 972 | write(lunout,*)' purmats = ', purmats |
---|
| 973 | write(lunout,*)' read_start = ', read_start |
---|
| 974 | write(lunout,*)' iflag_phys = ', iflag_phys |
---|
| 975 | write(lunout,*)' iphysiq = ', iphysiq |
---|
| 976 | write(lunout,*)' clon = ', clon |
---|
| 977 | write(lunout,*)' clat = ', clat |
---|
| 978 | write(lunout,*)' grossismx = ', grossismx |
---|
| 979 | write(lunout,*)' grossismy = ', grossismy |
---|
| 980 | write(lunout,*)' fxyhypb = ', fxyhypb |
---|
| 981 | write(lunout,*)' dzoomx = ', dzoomx |
---|
| 982 | write(lunout,*)' dzoomy = ', dzoomy |
---|
| 983 | write(lunout,*)' taux = ', taux |
---|
| 984 | write(lunout,*)' tauy = ', tauy |
---|
| 985 | write(lunout,*)' offline = ', offline |
---|
| 986 | write(lunout,*)' type_trac = ', type_trac |
---|
| 987 | write(lunout,*)' ok_dynzon = ', ok_dynzon |
---|
| 988 | write(lunout,*)' ok_dyn_ins = ', ok_dyn_ins |
---|
| 989 | write(lunout,*)' ok_dyn_ave = ', ok_dyn_ave |
---|
[4368] | 990 | write(lunout,*)' ok_dyn_xios = ', ok_dyn_xios |
---|
[2142] | 991 | write(lunout,*)' use_filtre_fft = ', use_filtre_fft |
---|
| 992 | write(lunout,*)' use_mpi_alloc = ', use_mpi_alloc |
---|
| 993 | write(lunout,*)' ok_strato = ', ok_strato |
---|
| 994 | write(lunout,*)' ok_gradsfile = ', ok_gradsfile |
---|
| 995 | write(lunout,*)' ok_limit = ', ok_limit |
---|
| 996 | write(lunout,*)' ok_etat0 = ', ok_etat0 |
---|
[4368] | 997 | write(lunout,*)' ok_guide = ', ok_guide |
---|
[2665] | 998 | write(lunout,*)' read_orop = ', read_orop |
---|
[4368] | 999 | ENDIF test_etatinit |
---|
[2142] | 1000 | |
---|
| 1001 | END SUBROUTINE conf_gcm |
---|