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

Contents of /trunk/dyn3d/conf_gcm.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 56 - (show annotations)
Tue Jan 10 19:02:02 2012 UTC (12 years, 4 months ago) by guez
Original Path: trunk/libf/dyn3d/conf_gcm.f90
File size: 3190 byte(s)
Imported "writehist.f" from LMDZ.

Moved module variable "histaveid" from "com_io_dyn" to "initdynav_m".

In "inithist", access directly module variables from "com_io_dyn"
instead of going through the arguments. Copying from LMDZ, write "u"
and scalar variables to separate files. Create a new variable for the
new file in "com_io_dyn". Copying from LMDZ, change the vertical axes
of the three files.

Removed some useless initializations in "dissip".

In "bilan_dyn", removed useless variable "time". Avoiding the
approximate test on "dt_cum" being a multiple of "dt_app", just
compute "ncum" from known usage of "bilan_dyn" and compute "dt_cum"
from "ncum". Change "periodav" from real to integer in
"conf_gcm_m". Since "day_step" is required to be a multiple of
"iperiod", so is "ncum".

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 ! (remise a zero de la date initiale, prise en compte de la date de
30 ! gcm.def avec remise a zero des compteurs de pas de temps)
31 ! (pas de remise a zero: on garde la date du 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 contains
40
41 SUBROUTINE conf_gcm
42
43 ! Auteurs : L. Fairhead, P. Le Van
44 ! Version du 29/04/97
45
46 ! On ne compare pas les valeurs des paramètres du zoom, grossismx,
47 ! grossismy, clon, clat, fxyhypb lues sur le fichier start avec
48 ! celles passées par run.def, au début du gcm.
49 ! Ces paramètres définissent entre autres la grille et doivent être
50 ! cohérents, sinon il y aura divergence du gcm.
51
52 use abort_gcm_m, only: abort_gcm
53 use comdissnew, only: read_comdissnew
54 use logic, only: read_logic
55 use serre, only: clon, clat, grossismx, grossismy, alphax, alphay, &
56 dzoomx, dzoomy, taux, tauy
57 use iniprint, only: read_iniprint
58
59 namelist /conf_gcm_nml/dayref, anneeref, raz_date, nday, day_step, &
60 iperiod, iapp_tracvl, iconser, iecri, periodav, &
61 iphysiq, clon, clat, grossismx, grossismy, dzoomx, dzoomy, taux, &
62 tauy, offline
63
64 !------------------------------------
65
66 print *, "Call sequence information: conf_gcm"
67
68 call read_iniprint
69 call read_logic
70 call read_comdissnew
71
72 print *, "Enter namelist 'conf_gcm_nml'."
73 read(unit=*, nml=conf_gcm_nml)
74 write(unit=*, nml=conf_gcm_nml)
75
76 IF (MOD(day_step, iperiod) /= 0) call abort_gcm(modname = "conf_gcm", &
77 message = &
78 'Il faut choisir un nombre de pas par jour multiple de "iperiod".', &
79 ierr = 1)
80
81 IF (MOD(day_step,iphysiq)/= 0) call abort_gcm(modname = "conf_gcm", &
82 message = &
83 'Il faut choisir un nombre de pas par jour multiple de "iphysiq".', &
84 ierr = 1)
85
86 IF (grossismx < 1.) THEN
87 PRINT *, 'Error: grossismx < 1'
88 STOP 1
89 ELSE
90 alphax = 1. - 1. / grossismx
91 ENDIF
92 IF (grossismy < 1.) THEN
93 PRINT *, 'Error: grossismy < 1'
94 STOP 1
95 ELSE
96 alphay = 1. - 1. / grossismy
97 ENDIF
98 PRINT *, 'alphax = ', alphax
99 PRINT *, 'alphay = ', alphay
100
101 END SUBROUTINE conf_gcm
102
103 end module conf_gcm_m

  ViewVC Help
Powered by ViewVC 1.1.21