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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 83 - (show annotations)
Thu Mar 6 15:12:00 2014 UTC (10 years, 2 months ago) by guez
Original Path: trunk/bibio/writehist.f
File size: 2391 byte(s)
In procedure conf_guide, replaced calls to getpar by reading a
namelist. Removed file getparam.f, now unused. So getin of IOIPSL is
now unused too. Removed files getincom.f, getincom2.f, cmpblank.f,
find_sig.f, gensig.f and nocomma.f.

Moved variables lat_min_guide and lat_max_guide from module
tau2alpha_m to module conf_guide_m.

Removed variables nivsig and nivsigs of module disvert_m. Instead, in
initdynav and initfluxsto, directly wrote arithmetic sequence for
verical axis, pending a better vertical axis. Removed variables nivsig
and nivsigs of "(re)?.start.nc".

In procedure exner_hyb, replaced p(:, :, 1) by equivalent ps.

1 module writehist_m
2
3 implicit none
4
5 contains
6
7 subroutine writehist(time, vcov, ucov, teta, phi, q, masse, ps)
8
9 ! From writehist.F 1403 2010-07-01 09:02:53Z
10 ! Écriture du fichier histoire au format IOIPSL
11 ! Appels successifs des routines histwrite
12 ! L. Fairhead, LMD, 03/99
13
14 use dimens_m, only: nqmx, llm, jjm
15 USE iniadvtrac_m, ONLY: ttext
16 use com_io_dyn, only: histid, histvid, histuid
17 use paramet_m, only: ip1jm, ip1jmp1, iip1, jjp1
18 use temps, only: itau_dyn
19 use histwrite_m, only: histwrite
20 use histsync_m, only: histsync
21 use covnat_m, only: covnat
22
23 ! Entree:
24 ! time: temps de l'ecriture
25 ! vcov: vents v covariants
26 ! ucov: vents u covariants
27 ! teta: temperature potentielle
28 ! phi : geopotentiel instantane
29 ! q : traceurs
30 ! masse: masse
31 ! ps :pression au sol
32
33 ! Arguments
34
35 REAL vcov(ip1jm, llm), ucov(ip1jmp1, llm)
36 REAL teta(ip1jmp1, llm), phi(ip1jmp1, llm)
37 REAL, intent(in):: ps(ip1jmp1), masse(ip1jmp1, llm)
38 REAL q(ip1jmp1, llm, nqmx)
39 integer time
40
41 ! This routine needs IOIPSL to work
42 ! Variables locales
43
44 integer iq, ii, ll
45 integer ndexu(ip1jmp1*llm), ndexv(ip1jm*llm), ndex2d(ip1jmp1)
46 logical ok_sync
47 integer itau_w
48 REAL vnat(ip1jm, llm), unat(ip1jmp1, llm)
49
50 !---------------------------------------------------------------------
51
52 ! Initialisations
53
54 ndexu = 0
55 ndexv = 0
56 ndex2d = 0
57 ok_sync =.TRUE.
58 itau_w = itau_dyn + time
59 ! Passage aux composantes naturelles du vent
60 call covnat(llm, ucov, vcov, unat, vnat)
61
62 ! Appels a histwrite pour l'ecriture des variables a sauvegarder
63
64 ! Vents U
65
66 call histwrite(histuid, 'u', itau_w, unat)
67
68 ! Vents V
69
70 call histwrite(histvid, 'v', itau_w, vnat)
71
72 ! Temperature potentielle
73
74 call histwrite(histid, 'teta', itau_w, teta)
75
76 ! Geopotentiel
77
78 call histwrite(histid, 'phi', itau_w, phi)
79
80 ! Traceurs
81
82 ! DO iq=1, nqmx
83 ! call histwrite(histid, ttext(iq), itau_w, q(:, :, iq),
84 ! . iip1*jjp1*llm, ndexu)
85 ! enddo
86 !C
87 ! Masse
88
89 call histwrite(histid, 'masse', itau_w, masse)
90
91 ! Pression au sol
92 call histwrite(histid, 'ps', itau_w, ps)
93
94 if (ok_sync) then
95 call histsync(histid)
96 call histsync(histvid)
97 call histsync(histuid)
98 endif
99
100 end subroutine writehist
101
102 end module writehist_m

  ViewVC Help
Powered by ViewVC 1.1.21