/[lmdze]/trunk/dyn3d/conf_gcm.f
ViewVC logotype

Annotation of /trunk/dyn3d/conf_gcm.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 224 - (hide annotations)
Fri Apr 28 13:40:59 2017 UTC (7 years ago) by guez
Original Path: trunk/Sources/dyn3d/conf_gcm.f
File size: 2654 byte(s)
offline allows to save variables for another run with offline
transport, but there is no provision for this other run with offline
transport in LMDZE. The procedures read_pstoke and read_pstoke0 in
LMDZ are never called. So removed the possibility offline = T.

1 guez 3 module conf_gcm_m
2    
3     IMPLICIT NONE
4    
5 guez 212 INTEGER:: nday = 1 ! nombre de jours d'int\'egration
6 guez 154 integer:: day_step = 240 ! nombre de pas de temps de la dynamique par jour
7     integer:: iperiod = 5 ! periode pour le pas Matsuno (en pas de temps)
8 guez 3
9 guez 39 integer:: iapp_tracvl = 5
10 guez 3 ! Should normally be equal to "iperiod"
11     ! frequence du groupement des flux (en pas de temps)
12    
13 guez 39 integer:: iconser = 240
14     ! number of time steps between output of control variables
15 guez 3
16 guez 39 integer:: iecri = 1 ! time interval between outputs to "dyn_hist.nc" (in days)
17 guez 3
18 guez 40 integer:: iphysiq = 5
19     ! number of time steps of dynamics between calls to physics
20    
21 guez 15 logical:: raz_date = .false.
22 guez 154 ! prise en compte de la date initiale de la namelist et remise \`a
23     ! z\'ero des compteurs de pas de temps (sinon on garde la date du
24 guez 98 ! fichier restart)
25 guez 3
26 guez 56 integer:: periodav = 1
27     ! time interval between outputs in the dynamical part, in days
28 guez 3
29 guez 154 integer:: prt_level = 0 ! niveau d'impression souhait\'e (0 = minimum)
30 guez 57
31     LOGICAL:: purmats= .FALSE.
32     ! Help = Choix du schema d'integration temporel.
33     ! y = pure Matsuno sinon c'est du Matsuno-leapfrog
34    
35 guez 208 logical:: iflag_phys = .true. ! call parameterizations of physics
36 guez 202 INTEGER, SAVE:: lmt_pas ! number of time steps of "physics" per day
37    
38 guez 3 contains
39    
40 guez 13 SUBROUTINE conf_gcm
41 guez 3
42     ! Auteurs : L. Fairhead, P. Le Van
43     ! Version du 29/04/97
44    
45 guez 33 use abort_gcm_m, only: abort_gcm
46 guez 212 use nr_util, only: assert
47 guez 57 use unit_nml_m, only: unit_nml
48 guez 3
49 guez 129 namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, &
50 guez 224 iconser, iecri, periodav, iphysiq
51 guez 3
52 guez 129 namelist /iniprint_nml/ prt_level
53 guez 57
54 guez 115 namelist /logic_nml/ purmats, iflag_phys
55 guez 57
56 guez 3 !------------------------------------
57    
58     print *, "Call sequence information: conf_gcm"
59 guez 12
60 guez 57 print *, "Enter namelist 'iniprint_nml'."
61     read(unit=*, nml=iniprint_nml)
62     write(unit_nml, nml=iniprint_nml)
63    
64     print *, "Enter namelist 'logic_nml'."
65     read(unit=*, nml=logic_nml)
66     write(unit_nml, nml=logic_nml)
67    
68 guez 3 print *, "Enter namelist 'conf_gcm_nml'."
69     read(unit=*, nml=conf_gcm_nml)
70 guez 57 write(unit_nml, nml=conf_gcm_nml)
71 guez 3
72 guez 171 IF (MOD(day_step, iperiod) /= 0) call abort_gcm("conf_gcm", &
73     'Il faut choisir un nombre de pas par jour multiple de "iperiod".')
74 guez 33
75 guez 171 IF (MOD(day_step, iphysiq)/= 0) call abort_gcm("conf_gcm", &
76     'Il faut choisir un nombre de pas par jour multiple de "iphysiq".')
77 guez 33
78 guez 212 call assert(mod(iphysiq, iperiod) == 0, &
79     "conf_gcm -- iphysiq must be multiple of iperiod")
80    
81 guez 202 lmt_pas = day_step / iphysiq
82     print *, 'Number of time steps of "physics" per day: ', lmt_pas
83    
84 guez 3 END SUBROUTINE conf_gcm
85    
86     end module conf_gcm_m

  ViewVC Help
Powered by ViewVC 1.1.21