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

Contents of /trunk/dyn3d/conf_gcm.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 328 - (show annotations)
Thu Jun 13 14:40:06 2019 UTC (4 years, 11 months ago) by guez
File size: 2706 byte(s)
Change all `.f` suffixes to `.f90`. (The opposite was done in revision
82.)  Because of change of philosopy in GNUmakefile: we already had a
rewritten rule for `.f`, so it does not make the makefile longer to
replace it by a rule for `.f90`. And it spares us options of
makedepf90 and of the compiler. Also we prepare the way for a simpler
`CMakeLists.txt`.

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
22
23 logical, protected:: raz_date = .false.
24 ! 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 ! fichier restart)
27
28 integer, protected:: periodav = 1
29 ! time interval between outputs in the dynamical part, in days
30
31 integer, protected:: prt_level = 0
32 ! niveau d'impression souhait\'e (0 = minimum)
33
34 LOGICAL, protected:: purmats= .FALSE.
35 ! Help = Choix du schema d'integration temporel.
36 ! y = pure Matsuno sinon c'est du Matsuno-leapfrog
37
38 logical, protected:: iflag_phys = .true. ! call parameterizations of physics
39 INTEGER, SAVE, protected:: lmt_pas ! number of time steps of "physics" per day
40
41 contains
42
43 SUBROUTINE conf_gcm
44
45 ! Auteurs : L. Fairhead, P. Le Van
46 ! Version du 29/04/97
47
48 use abort_gcm_m, only: abort_gcm
49 use nr_util, only: assert
50 use unit_nml_m, only: unit_nml
51
52 namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, &
53 iconser, periodav, iphysiq
54
55 namelist /iniprint_nml/ prt_level
56
57 namelist /logic_nml/ purmats, iflag_phys
58
59 !------------------------------------
60
61 print *, "Call sequence information: conf_gcm"
62
63 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 print *, "Enter namelist 'conf_gcm_nml'."
72 read(unit=*, nml=conf_gcm_nml)
73 write(unit_nml, nml=conf_gcm_nml)
74
75 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
78 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
81 call assert(mod(iphysiq, iperiod) == 0, &
82 "conf_gcm -- iphysiq must be multiple of iperiod")
83
84 lmt_pas = day_step / iphysiq
85 print *, 'Number of time steps of "physics" per day: ', lmt_pas
86
87 END SUBROUTINE conf_gcm
88
89 end module conf_gcm_m

  ViewVC Help
Powered by ViewVC 1.1.21