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