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

Annotation of /trunk/dyn3d/conf_gcm.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 301 - (hide annotations)
Thu Aug 2 17:23:07 2018 UTC (5 years, 10 months ago) by guez
Original Path: trunk/dyn3d/conf_gcm.f
File size: 2694 byte(s)
Move the call to conf_interface up to physiq, so there is no need to
test first call inside pbl_surface for this.

run_off_lic in fonte_neige was computed but not used. Pass it up to
pbl_surface so we can output it (following LMDZ).

Simplify the logic in interfsur_lim so we do not need debut.

Remove the tests on the order of surface types in interfsurf_hq. Just
add comments in indicesol.

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

  ViewVC Help
Powered by ViewVC 1.1.21