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

Contents of /trunk/dyn3d/conf_gcm.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 331 - (show annotations)
Wed Jul 31 17:10:31 2019 UTC (4 years, 9 months ago) by guez
File size: 2942 byte(s)
Use same variable name across procedures: falbe.

In procedure albsno, no need for `MAX(0., snow_fall)`: snow_fall is
necessarily >= 0. No need to constrain update of agesno to be >= 0:
the result of the computation is necessarily >= 0 since agesno >= 0
and dtphys <= 86400.

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

  ViewVC Help
Powered by ViewVC 1.1.21