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

Annotation of /trunk/dyn3d/conf_gcm.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 56 - (hide 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 guez 3 module conf_gcm_m
2    
3     IMPLICIT NONE
4    
5 guez 39 INTEGER:: nday = 10 ! nombre de jours d'intégration
6     integer:: day_step = 240 ! nombre de pas par jour, multiple de iperiod
7 guez 3
8 guez 39 integer:: iperiod = 5
9 guez 3 ! periode pour le pas Matsuno (en pas de temps)
10    
11 guez 39 integer:: iapp_tracvl = 5
12 guez 3 ! Should normally be equal to "iperiod"
13     ! frequence du groupement des flux (en pas de temps)
14    
15 guez 39 integer:: iconser = 240
16     ! number of time steps between output of control variables
17 guez 3
18 guez 39 integer:: iecri = 1 ! time interval between outputs to "dyn_hist.nc" (in days)
19 guez 3
20 guez 40 integer:: iphysiq = 5
21     ! number of time steps of dynamics between calls to physics
22    
23 guez 3 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 guez 15 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 guez 3
33 guez 56 integer:: periodav = 1
34     ! time interval between outputs in the dynamical part, in days
35 guez 3
36 guez 12 logical:: offline = .FALSE.
37 guez 33 ! permet de mettre en route la nouvelle parametrisation de l'eau liquide
38 guez 3
39     contains
40    
41 guez 13 SUBROUTINE conf_gcm
42 guez 3
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 guez 33 use abort_gcm_m, only: abort_gcm
53 guez 3 use comdissnew, only: read_comdissnew
54 guez 12 use logic, only: read_logic
55 guez 3 use serre, only: clon, clat, grossismx, grossismy, alphax, alphay, &
56     dzoomx, dzoomy, taux, tauy
57 guez 12 use iniprint, only: read_iniprint
58 guez 3
59     namelist /conf_gcm_nml/dayref, anneeref, raz_date, nday, day_step, &
60 guez 26 iperiod, iapp_tracvl, iconser, iecri, periodav, &
61 guez 13 iphysiq, clon, clat, grossismx, grossismy, dzoomx, dzoomy, taux, &
62     tauy, offline
63 guez 3
64     !------------------------------------
65    
66     print *, "Call sequence information: conf_gcm"
67 guez 12
68 guez 3 call read_iniprint
69 guez 12 call read_logic
70     call read_comdissnew
71 guez 3
72     print *, "Enter namelist 'conf_gcm_nml'."
73     read(unit=*, nml=conf_gcm_nml)
74     write(unit=*, nml=conf_gcm_nml)
75    
76 guez 40 IF (MOD(day_step, iperiod) /= 0) call abort_gcm(modname = "conf_gcm", &
77 guez 33 message = &
78     'Il faut choisir un nombre de pas par jour multiple de "iperiod".', &
79     ierr = 1)
80    
81 guez 40 IF (MOD(day_step,iphysiq)/= 0) call abort_gcm(modname = "conf_gcm", &
82     message = &
83 guez 33 'Il faut choisir un nombre de pas par jour multiple de "iphysiq".', &
84     ierr = 1)
85    
86 guez 3 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