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

Contents of /trunk/dyn3d/conf_gcm.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 266 - (show annotations)
Thu Apr 19 17:54:55 2018 UTC (6 years ago) by guez
File size: 2565 byte(s)
Define macros of the preprocessor CPP_IIM, CPP_JJM, CPP_LLM so we can
control the resolution from the compilation command, and automate
compilation for several resolutions.

In module yoethf_m, transform variables into named constants. So we do
not need procedure yoethf any longer.

Bug fix in program test_inter_barxy, missing calls to fyhyp and fxhyp,
and definition of rlatu.

Remove variable iecri of module conf_gcm_m. The files dyn_hist*.nc are
written every time step. We are simplifying the output system, pending
replacement by a whole new system.

Modify possible value of vert_sampling from "param" to
"strato_custom", following LMDZ. Default values of corresponding
namelist variables are now the values used for LMDZ CMIP6.

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

  ViewVC Help
Powered by ViewVC 1.1.21