source: LMDZ4/branches/LMDZ4_par_0/libf/phylmd/ini_histhf.h @ 1203

Last change on this file since 1203 was 634, checked in by Laurent Fairhead, 19 years ago

Modifications faites à la physique pour la rendre parallele YM
Une branche de travail LMDZ4_par_0 a été créée provisoirement afin de tester
les modifs pleinement avant leurs inclusions dans le tronc principal
LF

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 6.7 KB
RevLine 
[524]1!
2! $Header$
3!
4
5      IF (ok_hf) THEN
6c
7        zout = dtime * REAL(NINT(86400./dtime*ecrit_hf))
8        zsto = zout
9        zsto1 = dtime
10        PRINT*, 'La frequence de sortie instant. est de ', ecrit_hf
11c
12         idayref = day_ref
13         CALL ymds2ju(annee_ref, 1, idayref, 0.0, zjulian)
14
15c
[634]16cym         CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlon,zx_lon)
17cym         DO i = 1, iim
18cym            zx_lon(i,1) = rlon(i+1)
19cym            zx_lon(i,jjmp1) = rlon(i+1)
20cym         ENDDO
[524]21
[634]22cym         CALL gr_fi_ecrit(1,klon,iim,jjmp1,rlat,zx_lat)
[524]23
24cccIM      CALL histbeg("histhf", iim,zx_lon, jjmp1,zx_lat,
[634]25cym         CALL histbeg("histhf", iim,zx_lon(:,1), jjmp1,zx_lat(1,:),
26cym     .                 1,iim,1,jjmp1, itau_phy, zjulian, dtime, 
27cym     .                 nhori, nid_hf)
28
29         CALL histbeg_phy("histhf", itau_phy, zjulian, dtime, 
[524]30     .                 nhori, nid_hf)
31
32         CALL histvert(nid_hf, "presnivs", "Vertical levels", "mb",
33     .                 klev, presnivs, nvert)
34c
35
36      IF(lev_histhf.GE.1) THEN
37c
38c        CALL histdef(nid_hf, "phis", "Surface geop. height", "-",
39c    .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
40c    .                "once", zsto,zout)
41c
42c        CALL histdef(nid_hf, "aire", "Grid area", "-",
43c    .                iim,jjmp1,nhori, 1,1,1, -99, 32, 
44c    .                "once", zsto,zout)
45c
46         CALL histdef(nid_hf, "aireTER","Grid area CONT","-",
[634]47     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]48     .                "once", zsto,zout)
49c
50         CALL histdef(nid_hf, "contfracATM","% sfce ter+lic ","-",
[634]51     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]52     .                "once", zsto,zout)
53c
54         CALL histdef(nid_hf, "contfracOR","% sfce terre OR", "-",
[634]55     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]56     .                "once", zsto,zout)
57c
58c Champs 2D:
59c
60         CALL histdef(nid_hf, "t2m", "Temperature 2m", "K",
[634]61     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
[524]62     .                "inst(X)", zsto,zout)
63c
64         CALL histdef(nid_hf, "q2m", "Specific humidity", "kg/kg",
[634]65     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]66     .                "inst(X)", zsto,zout)
67c
68         CALL histdef(nid_hf, "psol", "Surface Pressure", "Pa",
[634]69     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
[524]70     .                "inst(X)", zsto,zout)
71c
72         print*,'ATTENTION METTRE AVE(X) POUR LES PRECIPS'
73
74         CALL histdef(nid_hf, "rain", "Precipitation", "kg/m^2s",
[634]75     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32, 
[524]76     .                "ave(X)", zsto1,zout)
77c
78cIM ENSEMBLES BEG
79c
80         CALL histdef(nid_hf, "tsol", "Surface Temperature", "K",
[634]81     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]82     .                "inst(X)", zsto,zout)
83c
84         CALL histdef(nid_hf, "slp", "Sea Level Pressure", "Pa",
[634]85     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]86     .                "inst(X)", zsto,zout)
87c
88c
89         CALL histdef(nid_hf, "u10m", "Vent zonal 10m", "m/s",
[634]90     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]91     .                "inst(X)", zsto,zout)
92c
93         CALL histdef(nid_hf, "v10m", "Vent meridien 10m", "m/s",
[634]94     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]95     .                "inst(X)", zsto,zout)
96c
97         CALL histdef(nid_hf, "wind10m","10-m wind speed","m/s",
[634]98     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]99     .                "inst(X)", zsto,zout)
100c
101         DO k=1, nlevENS
102          IF(clev(k).EQ."500") THEN
103          CALL histdef(nid_hf, "phi"//clev(k),
104     .                "Geopotential"//clev(k)//"mb", "m2/s2",
[634]105     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]106     .                "inst(X)", zsto,zout)
107          ENDIF !clev(k).EQ."500"
108         ENDDO !k=1, nlevENS
109c
110      ENDIF !lev_histhf.GE.1
111c
112      IF(lev_histhf.GE.2) THEN
113c
114         CALL histdef(nid_hf, "cldt", "Total cloudiness", "-",
[634]115     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]116     .                "ave(X)", zsto1,zout)
117c
[590]118c -- LOOP
[524]119         CALL histdef(nid_hf, "SWdownOR",
[590]120     .                "Sfce incident SW down radiation OR", "W/m^2",
[634]121     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]122     .                "ave(X)", zsto1,zout)
123c
[590]124         CALL histdef(nid_hf, "SWnetOR",
125     .                "Sfce incident SW net radiation OR", "W/m^2",
[634]126     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[590]127     .                "ave(X)", zsto1,zout)
128c -- LOOP
129c
[524]130         CALL histdef(nid_hf, "LWdownOR",
131     .                "Sfce incident LW radiation OR", "W/m^2",
[634]132     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]133     .                "ave(X)", zsto1,zout)
134      ENDIF !lev_histhf.GE.2
135c
136cIM ENSEMBLES END
137c
138      IF(lev_histhf.GE.3) THEN
139c
140         DO k=1, nlevENS
141c
142          CALL histdef(nid_hf, "t"//clev(k),
143     .                 "Temperature"//clev(k)//"mb","K",
[634]144     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]145     .                "inst(X)", zsto,zout)
146c
147          IF(clev(k).NE."500") THEN
148          CALL histdef(nid_hf, "phi"//clev(k),
149     .                "Geopotential"//clev(k)//"mb", "m2/s2",
[634]150     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]151     .                "inst(X)", zsto,zout)
152          ENDIF
153c
154          CALL histdef(nid_hf, "q"//clev(k),
155     .                 "Specific humidity"//clev(k)//"mb","kg/kg",
[634]156     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]157     .                "inst(X)", zsto,zout)
158c
159         IF(1.EQ.0) THEN
160         CALL histdef(nid_hf, "rh"//clev(k),
161     .                 "Relative humidity"//clev(k)//"mb", "%",
[634]162     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]163     .                "inst(X)", zsto,zout)
164         ENDIF
165c
166          CALL histdef(nid_hf, "u"//clev(k),
167     .                 "Zonal wind"//clev(k)//"mb","m/s",
[634]168     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]169     .                "inst(X)", zsto,zout)
170c
171          CALL histdef(nid_hf, "v"//clev(k),
172     .                 "Meridional wind"//clev(k)//"mb","m/s",
[634]173     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]174     .                "inst(X)", zsto,zout)
175c
176         ENDDO !nlevENS
177         IF(1.EQ.0) THEN
178         CALL histdef(nid_hf, "cdrm", " Momentum drag coef.", "-",
[634]179     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]180     .                "inst(X)", zsto,zout)
181c
182         CALL histdef(nid_hf, "cdrh", "Heat drag coef.", "-",
[634]183     .                iim,jjphy_nb,nhori, 1,1,1, -99, 32,
[524]184     .                "inst(X)", zsto,zout)
185         ENDIF !(1.EQ.0) THEN
186c
187      ENDIF !lev_histhf.GE.3
188c
189      IF(lev_histhf.GE.4) THEN
190#define histhf3d
191#ifdef histhf3d
192#include "ini_histhf3d.h"
193#endif
194      ENDIF !lev_histhf.GE.4
195c
196c#define histhf3d
197c#ifdef histhf3d
198c#include "ini_histhf3d.h"
199c#endif
200c
201         CALL histend(nid_hf)
202c
203      endif ! ok_hf
Note: See TracBrowser for help on using the repository browser.