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