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

Contents of /trunk/Sources/dyn3d/conf_gcm.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 115 - (show annotations)
Fri Sep 19 17:36:20 2014 UTC (9 years, 8 months ago) by guez
Original Path: trunk/dyn3d/conf_gcm.f
File size: 3254 byte(s)
Extracted code from tau2alpha for first call into new procedure
init_tau2alpha. dxdys, dxdyu, dxdyv are now local variables if guide
computed by init_tau2alpha. This allows us to remove terrible argument
type of tau2alpha: we just give to tau2alpha the right dxdy and
rlat.

In module conf_guide_m, changed default values of tau_min_*, because
0.02 is too small for the default daystep = 240, iperiod = 5. Changed
default values of guide_[uv] to false. Moved variable ok_guide from
conf_gcm_m to conf_guide_m, ok_guide is no longer an input parameter,
it is computed from guide_*. Had then to move test on ok_guide and
day_step from conf_gcm_m to conf_guide_m. Added checks on input
nudging parameters in procedure conf_guide. Upgraded variable factt to
module conf_guide_m in order to check nudging parameters. Bug fix:
variable guide_q was not in namelist conf_guide_nml.

Removed unused variables aire_min, aire_max of MODULE guide_m.

Moved the call to conf_guide from guide to gcm. This was needed to
define ok_guide before getting into guide (since ok_guide is no longer
in conf_gcm_m). Moved test on grossismx and grossismy from tau2alpha
to guide. It is clearer now that only tau_max is used for a regular
grid, and we do not have to repeat this test in each call to
tau2alpha. In guide, we only call writefield when alpha is not a
constant.

1 module conf_gcm_m
2
3 IMPLICIT NONE
4
5 INTEGER:: nday = 10 ! nombre de jours d'intégration
6 integer:: day_step = 240 ! nombre de pas par jour, multiple de iperiod
7
8 integer:: iperiod = 5
9 ! periode pour le pas Matsuno (en pas de temps)
10
11 integer:: iapp_tracvl = 5
12 ! Should normally be equal to "iperiod"
13 ! frequence du groupement des flux (en pas de temps)
14
15 integer:: iconser = 240
16 ! number of time steps between output of control variables
17
18 integer:: iecri = 1 ! time interval between outputs to "dyn_hist.nc" (in days)
19
20 integer:: iphysiq = 5
21 ! number of time steps of dynamics between calls to physics
22
23 integer:: dayref = 1 ! jour de l'année de l'état initial
24 ! (= 350 si 20 décembre par exemple)
25
26 integer:: anneeref = 1998 ! Annee de l'etat initial (avec 4 chiffres)
27
28 logical:: raz_date = .false.
29 ! prise en compte de la date initiale de la namelist et remise à
30 ! zéro des compteurs de pas de temps (sinon on garde la date du
31 ! fichier restart)
32
33 integer:: periodav = 1
34 ! time interval between outputs in the dynamical part, in days
35
36 logical:: offline = .FALSE.
37 ! permet de mettre en route la nouvelle parametrisation de l'eau liquide
38
39 integer:: prt_level = 0 ! niveau d'impression souhaité (0 = minimum)
40
41 LOGICAL:: purmats= .FALSE.
42 ! Help = Choix du schema d'integration temporel.
43 ! y = pure Matsuno sinon c'est du Matsuno-leapfrog
44
45 INTEGER:: iflag_phys = 1
46 ! contrôle l'appel à la physique :
47 ! 0 : pas de physique
48 ! 1 : physique normale (appel à phylmd, phymars...) (default)
49 ! 2 : rappel Newtonien pour la température + friction au sol
50
51 contains
52
53 SUBROUTINE conf_gcm
54
55 ! Auteurs : L. Fairhead, P. Le Van
56 ! Version du 29/04/97
57
58 ! On ne compare pas les paramètres du zoom (grossismx, grossismy,
59 ! clon, clat) lus sur le fichier start avec ceux lus dans
60 ! une namelist, au début de gcm. Ces paramètres définissent entre
61 ! autres la grille et doivent être identiques, sinon il y aura
62 ! divergence du gcm.
63
64 use abort_gcm_m, only: abort_gcm
65 use comdissnew, only: read_comdissnew
66 use unit_nml_m, only: unit_nml
67
68 namelist /conf_gcm_nml/dayref, anneeref, raz_date, nday, day_step, &
69 iperiod, iapp_tracvl, iconser, iecri, periodav, iphysiq, offline
70
71 namelist /iniprint_nml/prt_level
72
73 namelist /logic_nml/ purmats, iflag_phys
74
75 !------------------------------------
76
77 print *, "Call sequence information: conf_gcm"
78
79 print *, "Enter namelist 'iniprint_nml'."
80 read(unit=*, nml=iniprint_nml)
81 write(unit_nml, nml=iniprint_nml)
82
83 print *, "Enter namelist 'logic_nml'."
84 read(unit=*, nml=logic_nml)
85 write(unit_nml, nml=logic_nml)
86
87 call read_comdissnew
88
89 print *, "Enter namelist 'conf_gcm_nml'."
90 read(unit=*, nml=conf_gcm_nml)
91 write(unit_nml, nml=conf_gcm_nml)
92
93 IF (MOD(day_step, iperiod) /= 0) call abort_gcm(modname = "conf_gcm", &
94 message = &
95 'Il faut choisir un nombre de pas par jour multiple de "iperiod".', &
96 ierr = 1)
97
98 IF (MOD(day_step, iphysiq)/= 0) call abort_gcm(modname = "conf_gcm", &
99 message = &
100 'Il faut choisir un nombre de pas par jour multiple de "iphysiq".', &
101 ierr = 1)
102
103 END SUBROUTINE conf_gcm
104
105 end module conf_gcm_m

  ViewVC Help
Powered by ViewVC 1.1.21