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

Annotation of /trunk/Sources/dyn3d/initdynav.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 40 - (hide annotations)
Tue Feb 22 13:49:36 2011 UTC (13 years, 3 months ago) by guez
Original Path: trunk/libf/bibio/initdynav.f90
File size: 3332 byte(s)
"alpha" useless, always 0, in "exner_hyb".

1 guez 3 module initdynav_m
2    
3     ! This module is clean: no C preprocessor directive, no include line
4    
5     implicit none
6    
7     contains
8    
9 guez 27 subroutine initdynav(day0, anne0, tstep, nq, fileid, t_ops, t_wrt)
10 guez 3
11 guez 27 ! From initdynav.F, version 1.1.1.1, 2004/05/19 12:53:05
12 guez 40 ! L. Fairhead, LMD
13     ! Routine d'initialisation des écritures des fichiers histoires LMDZ
14     ! au format IOIPSL. Initialisation du fichier histoire moyenne.
15 guez 3
16 guez 30 use calendar, ONLY: ymds2ju
17 guez 39 USE comvert, ONLY : nivsigs
18     USE comgeom, ONLY : rlatu, rlonv
19 guez 27 USE dimens_m, ONLY : llm
20 guez 39 USE histcom, ONLY: histbeg_totreg, histdef, histend, histvert
21     USE iniadvtrac_m, ONLY : ttext
22     USE nr_util, ONLY : pi
23 guez 27 USE paramet_m, ONLY : iip1, jjp1
24     USE temps, ONLY : itau_dyn
25 guez 3
26 guez 40 integer, intent(in):: day0, anne0 ! date de reference
27     real, intent(in):: tstep ! frequence d'ecriture
28     real, intent(in):: t_ops ! frequence de l'operation pour IOIPSL
29     real, intent(in):: t_wrt ! frequence d'ecriture sur le fichier
30     integer, intent(out):: fileid ! ID du fichier netcdf cree
31     integer, intent(in):: nq ! nombre de traceurs
32 guez 3
33 guez 40 ! Variables locales
34 guez 3 integer thoriid, zvertiid
35     real zjulian
36     integer iq
37 guez 40 real rlong(iip1, jjp1), rlat(iip1, jjp1)
38     integer ii, jj
39 guez 3 integer zan, dayref
40    
41     !----------------------------------------------------
42    
43 guez 40 print *, "Call sequence information: initdynav"
44 guez 3
45     zan = anne0
46     dayref = day0
47     CALL ymds2ju(zan, 1, dayref, 0.0, zjulian)
48    
49     do jj = 1, jjp1
50     do ii = 1, iip1
51 guez 40 rlong(ii, jj) = rlonv(ii) * 180. / pi
52     rlat(ii, jj) = rlatu(jj) * 180. / pi
53 guez 3 enddo
54     enddo
55    
56 guez 40 call histbeg_totreg('dyn_hist_ave.nc', rlong(:, 1), rlat(1, :), 1, iip1, &
57     1, jjp1, itau_dyn, zjulian, tstep, thoriid, fileid)
58     call histvert(fileid, 'sigss', 'Niveaux sigma', 'Pa', llm, nivsigs, &
59     zvertiid)
60 guez 3
61     call histdef(fileid, 'u', 'vents u scalaires moyennes', &
62     'm/s', iip1, jjp1, thoriid, llm, 1, llm, zvertiid, &
63 guez 15 'ave(X)', t_ops, t_wrt)
64 guez 3 call histdef(fileid, 'v', 'vents v scalaires moyennes', &
65     'm/s', iip1, jjp1, thoriid, llm, 1, llm, zvertiid, &
66 guez 15 'ave(X)', t_ops, t_wrt)
67 guez 3 call histdef(fileid, 'temp', 'temperature moyennee', 'K', &
68     iip1, jjp1, thoriid, llm, 1, llm, zvertiid, &
69 guez 15 'ave(X)', t_ops, t_wrt)
70 guez 3 call histdef(fileid, 'theta', 'temperature potentielle', 'K', &
71     iip1, jjp1, thoriid, llm, 1, llm, zvertiid, &
72 guez 15 'ave(X)', t_ops, t_wrt)
73 guez 3 call histdef(fileid, 'phi', 'geopotentiel moyenne', '-', &
74     iip1, jjp1, thoriid, llm, 1, llm, zvertiid, &
75 guez 15 'ave(X)', t_ops, t_wrt)
76 guez 27
77 guez 40 ! Traceurs
78     DO iq = 1, nq
79 guez 3 call histdef(fileid, ttext(iq), ttext(iq), '-', &
80     iip1, jjp1, thoriid, llm, 1, llm, zvertiid, &
81 guez 15 'ave(X)', t_ops, t_wrt)
82 guez 3 enddo
83 guez 27
84 guez 3 call histdef(fileid, 'masse', 'masse', 'kg', &
85     iip1, jjp1, thoriid, 1, 1, 1, -99, &
86 guez 15 'ave(X)', t_ops, t_wrt)
87 guez 3 call histdef(fileid, 'ps', 'pression naturelle au sol', 'Pa', &
88     iip1, jjp1, thoriid, 1, 1, 1, -99, &
89 guez 15 'ave(X)', t_ops, t_wrt)
90 guez 3 call histdef(fileid, 'phis', 'geopotentiel au sol', '-', &
91     iip1, jjp1, thoriid, 1, 1, 1, -99, &
92 guez 15 'ave(X)', t_ops, t_wrt)
93 guez 27
94 guez 3 call histend(fileid)
95    
96     end subroutine initdynav
97    
98     end module initdynav_m

  ViewVC Help
Powered by ViewVC 1.1.21