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

Annotation of /trunk/dyn3d/writehist.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 212 - (hide annotations)
Thu Jan 12 12:31:31 2017 UTC (7 years, 4 months ago) by guez
Original Path: trunk/Sources/dyn3d/writehist.f
File size: 1847 byte(s)
Moved variables from module com_io_dyn to module inithist_m, where
they are defined.

Split grid_atob.f into grille_m.f and dist_sphe.f. Extracted ASCCI art
to documentation. In grille_m, use automatic arrays instead of maximum
size. In grille_m, instead of printing data for every problematic
point, print a single diagnostic message.

Removed variables top_height, overlap, lev_histhf, lev_histday,
lev_histmth, type_run, ok_isccp, ok_regdyn, lonmin_ins, lonmax_ins,
latmin_ins, latmax_ins of module clesphys, not used.

Removed variable itap of module histwrite_phy_m, not used. There is a
variable itap in module time_phylmdz.

Added output of tro3.

In physiq, no need to compute wo at every time-step, since we only use
it in radlwsw.

1 guez 69 module writehist_m
2 guez 56
3 guez 69 implicit none
4 guez 56
5 guez 69 contains
6 guez 56
7 guez 138 subroutine writehist(time, vcov, ucov, teta, phi, masse, ps)
8 guez 56
9 guez 212 ! From writehist.F , revision 1403, 2010-07-01 09:02:53Z
10     ! Écriture du fichier histoire
11 guez 69 ! L. Fairhead, LMD, 03/99
12 guez 56
13 guez 212 use covnat_m, only: covnat
14 guez 178 use dimens_m, only: llm
15 guez 212 use histsync_m, only: histsync
16     use histwrite_m, only: histwrite
17     use inithist_m, only: histid, histvid, histuid
18 guez 178 use paramet_m, only: ip1jm, ip1jmp1
19 guez 69 use temps, only: itau_dyn
20 guez 56
21 guez 212 integer, intent(in):: time ! temps de l'ecriture
22     REAL, intent(in):: vcov(ip1jm, llm), ucov(ip1jmp1, llm) ! vent covariant
23     REAL, intent(in):: teta(ip1jmp1, llm) ! temperature potentielle
24     REAL, intent(in):: phi(ip1jmp1, llm) ! geopotentiel instantane
25     REAL, intent(in):: masse(ip1jmp1, llm)
26     REAL, intent(in):: ps(ip1jmp1) ! pression au sol
27 guez 56
28 guez 212 ! Local:
29 guez 69 logical ok_sync
30     integer itau_w
31     REAL vnat(ip1jm, llm), unat(ip1jmp1, llm)
32    
33     !---------------------------------------------------------------------
34    
35     ! Initialisations
36    
37     ok_sync =.TRUE.
38     itau_w = itau_dyn + time
39     ! Passage aux composantes naturelles du vent
40     call covnat(llm, ucov, vcov, unat, vnat)
41    
42     ! Appels a histwrite pour l'ecriture des variables a sauvegarder
43    
44     ! Vents U
45    
46     call histwrite(histuid, 'u', itau_w, unat)
47    
48     ! Vents V
49    
50     call histwrite(histvid, 'v', itau_w, vnat)
51    
52     ! Temperature potentielle
53    
54     call histwrite(histid, 'teta', itau_w, teta)
55    
56     ! Geopotentiel
57    
58     call histwrite(histid, 'phi', itau_w, phi)
59    
60     ! Masse
61    
62     call histwrite(histid, 'masse', itau_w, masse)
63    
64     ! Pression au sol
65     call histwrite(histid, 'ps', itau_w, ps)
66    
67     if (ok_sync) then
68     call histsync(histid)
69     call histsync(histvid)
70     call histsync(histuid)
71     endif
72    
73     end subroutine writehist
74    
75     end module writehist_m

  ViewVC Help
Powered by ViewVC 1.1.21