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

Contents of /trunk/dyn3d/conf_gcm.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 154 - (show annotations)
Tue Jul 7 17:49:23 2015 UTC (8 years, 10 months ago) by guez
Original Path: trunk/Sources/dyn3d/conf_gcm.f
File size: 2788 byte(s)
Removed argument dtphys of physiq. Use it directly from comconst in
physiq instead.

Donwgraded variables eignfnu, eignfnv of module inifgn_m to dummy
arguments of SUBROUTINE inifgn. They were not used elsewhere than in
the calling procedure inifilr. Renamed argument dv of inifgn to eignval_v.

Made alboc and alboc_cd independent of the size of arguments. Now we
can call them only at indices knindex in interfsurf_hq, where we need
them. Fixed a bug in alboc_cd: rmu0 was modified, and the
corresponding actual argument in interfsurf_hq is an intent(in)
argument of interfsurf_hq.

Variables of size knon instead of klon in interfsur_lim and interfsurf_hq.

Removed argument alb_new of interfsurf_hq because it was the same than
alblw. Simplified test on cycle_diurne, following LMDZ.

Moved tests on nbapp_rad from physiq to read_clesphys2. No need for
separate counter itaprad, we can use itap. Define lmt_pas and radpas
from integer input parameters instead of real-type computed values.

1 module conf_gcm_m
2
3 IMPLICIT NONE
4
5 INTEGER:: nday = 10 ! 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:: iecri = 1 ! time interval between outputs to "dyn_hist.nc" (in days)
17
18 integer:: iphysiq = 5
19 ! number of time steps of dynamics between calls to physics
20
21 logical:: raz_date = .false.
22 ! prise en compte de la date initiale de la namelist et remise \`a
23 ! z\'ero des compteurs de pas de temps (sinon on garde la date du
24 ! fichier restart)
25
26 integer:: periodav = 1
27 ! time interval between outputs in the dynamical part, in days
28
29 logical:: offline = .FALSE.
30 ! permet de mettre en route la nouvelle parametrisation de l'eau liquide
31
32 integer:: prt_level = 0 ! niveau d'impression souhait\'e (0 = minimum)
33
34 LOGICAL:: purmats= .FALSE.
35 ! Help = Choix du schema d'integration temporel.
36 ! y = pure Matsuno sinon c'est du Matsuno-leapfrog
37
38 INTEGER:: iflag_phys = 1
39 ! contr\^ole l'appel \`a la physique :
40 ! 0 : pas de physique
41 ! 1 : physique normale (appel \`a phylmd, phymars...) (default)
42 ! 2 : rappel Newtonien pour la temp\'erature + friction au sol
43
44 contains
45
46 SUBROUTINE conf_gcm
47
48 ! Auteurs : L. Fairhead, P. Le Van
49 ! Version du 29/04/97
50
51 use abort_gcm_m, only: abort_gcm
52 use comdissnew, only: read_comdissnew
53 use unit_nml_m, only: unit_nml
54
55 namelist /conf_gcm_nml/ raz_date, nday, day_step, iperiod, iapp_tracvl, &
56 iconser, iecri, periodav, iphysiq, offline
57
58 namelist /iniprint_nml/ prt_level
59
60 namelist /logic_nml/ purmats, iflag_phys
61
62 !------------------------------------
63
64 print *, "Call sequence information: conf_gcm"
65
66 print *, "Enter namelist 'iniprint_nml'."
67 read(unit=*, nml=iniprint_nml)
68 write(unit_nml, nml=iniprint_nml)
69
70 print *, "Enter namelist 'logic_nml'."
71 read(unit=*, nml=logic_nml)
72 write(unit_nml, nml=logic_nml)
73
74 call read_comdissnew
75
76 print *, "Enter namelist 'conf_gcm_nml'."
77 read(unit=*, nml=conf_gcm_nml)
78 write(unit_nml, nml=conf_gcm_nml)
79
80 IF (MOD(day_step, iperiod) /= 0) call abort_gcm(modname = "conf_gcm", &
81 message = &
82 'Il faut choisir un nombre de pas par jour multiple de "iperiod".', &
83 ierr = 1)
84
85 IF (MOD(day_step, iphysiq)/= 0) call abort_gcm(modname = "conf_gcm", &
86 message = &
87 'Il faut choisir un nombre de pas par jour multiple de "iphysiq".', &
88 ierr = 1)
89
90 END SUBROUTINE conf_gcm
91
92 end module conf_gcm_m

  ViewVC Help
Powered by ViewVC 1.1.21