source: LMDZ6/branches/Ocean_skin/libf/dyn3d/conf_gcm.F90

Last change on this file was 4368, checked in by lguez, 18 months ago

Sync latest trunk changes to Ocean_skin

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