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