1 | ! |
---|
2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/write_histmth.h,v 1.2 2005/03/09 12:30:16 fairhead Exp $ |
---|
3 | ! |
---|
4 | IF (ok_mensuel) THEN |
---|
5 | |
---|
6 | itau_w = itau_phy + itap |
---|
7 | |
---|
8 | c------------------------------------------------------- |
---|
9 | IF(lev_histmth.GE.1) THEN |
---|
10 | |
---|
11 | ccccccccccccc 2D fields, basics |
---|
12 | |
---|
13 | call histwrite_phy(nid_mth,.false.,"phis",itau_w,pphis) |
---|
14 | c call histwrite_phy(nid_mth,.false.,"aire",itau_w,cell_area) |
---|
15 | cell_area_out(:)=cell_area(:) |
---|
16 | if (is_north_pole_phy) cell_area_out(1)=cell_area(1)/nbp_lon |
---|
17 | if (is_south_pole_phy) cell_area_out(klon)=cell_area(klon)/nbp_lon |
---|
18 | call histwrite_phy(nid_mth,.false.,"aire",itau_w,cell_area_out) |
---|
19 | |
---|
20 | call histwrite_phy(nid_mth,.false.,"tsol",itau_w,ftsol) |
---|
21 | call histwrite_phy(nid_mth,.false.,"psol",itau_w,paprs(:,1)) |
---|
22 | c call histwrite_phy(nid_mth,.false.,"ue",itau_w,ue) |
---|
23 | c VENUS: regardee a l envers!!!!!!!!!!!!!!! |
---|
24 | c call histwrite_phy(nid_mth,.false.,"ve",itau_w,-1.*ve) |
---|
25 | c call histwrite_phy(nid_mth,.false.,"cdragh",itau_w,cdragh) |
---|
26 | c call histwrite_phy(nid_mth,.false.,"cdragm",itau_w,cdragm) |
---|
27 | |
---|
28 | ENDIF !lev_histmth.GE.1 |
---|
29 | |
---|
30 | c------------------------------------------------------- |
---|
31 | IF(lev_histmth.GE.2) THEN |
---|
32 | |
---|
33 | ccccccccccccc 3D fields, basics |
---|
34 | |
---|
35 | call histwrite_phy(nid_mth,.false.,"temp",itau_w,t_seri) |
---|
36 | call histwrite_phy(nid_mth,.false.,"pres",itau_w,pplay) |
---|
37 | call histwrite_phy(nid_mth,.false.,"geop",itau_w,zphi) |
---|
38 | call histwrite_phy(nid_mth,.false.,"vitu",itau_w,u_seri) |
---|
39 | c VENUS: regardee a l envers!!!!!!!!!!!!!!! |
---|
40 | call histwrite_phy(nid_mth,.false.,"vitv",itau_w,-1.*v_seri) |
---|
41 | call histwrite_phy(nid_mth,.false.,"vitw",itau_w,omega) |
---|
42 | c en (m/s)/s |
---|
43 | call histwrite_phy(nid_mth,.false.,"dudyn",itau_w,d_u_dyn) |
---|
44 | c en (m/s)/s |
---|
45 | call histwrite_phy(nid_mth,.false.,"duvdf",itau_w,d_u_vdf) |
---|
46 | c call histwrite_phy(nid_mth,.false.,"mang",itau_w,mang) |
---|
47 | c call histwrite_phy(nid_mth,.false.,"Kz",itau_w,ycoefh) |
---|
48 | call histwrite_phy(nid_mth,.false.,"mmean",itau_w,mmean) |
---|
49 | c call histwrite_phy(nid_mth,.false.,"rho",itau_w,rho) |
---|
50 | IF ((iflag_trac.eq.1) .and. ok_aoa) THEN |
---|
51 | call histwrite_phy(nid_mth,.false.,"age",itau_w,age) |
---|
52 | ENDIF |
---|
53 | |
---|
54 | c plusieurs traceurs !!!outputs in [vmr] |
---|
55 | IF (iflag_trac.eq.1) THEN |
---|
56 | DO iq=1,nqmax-nmicro |
---|
57 | call histwrite_phy(nid_mth,.false.,tname(iq),itau_w,qx(:,:,iq) |
---|
58 | & *mmean(:,:)/M_tr(iq)) |
---|
59 | ENDDO |
---|
60 | DO iq=nqmax-nmicro+1,nqmax |
---|
61 | call histwrite_phy(nid_mth,.false.,tname(iq),itau_w,qx(:,:,iq)) |
---|
62 | ENDDO |
---|
63 | ENDIF |
---|
64 | |
---|
65 | IF (callthermos .and. ok_chem) THEN |
---|
66 | call histwrite_phy(nid_mth,.false.,"d_qmoldifCO2",itau_w, |
---|
67 | . d_q_moldif(:,:,i_co2)) |
---|
68 | call histwrite_phy(nid_mth,.false.,"d_qmoldifO3p",itau_w, |
---|
69 | . d_q_moldif(:,:,i_o)) |
---|
70 | call histwrite_phy(nid_mth,.false.,"d_qmoldifN2",itau_w, |
---|
71 | . d_q_moldif(:,:,i_n2)) |
---|
72 | ENDIF |
---|
73 | |
---|
74 | call histwrite_phy(nid_mth,.false.,"tops",itau_w,topsw) |
---|
75 | |
---|
76 | ENDIF !lev_histmth.GE.2 |
---|
77 | |
---|
78 | c------------------------------------------------------- |
---|
79 | IF(lev_histmth.GE.3) THEN |
---|
80 | |
---|
81 | cccccccccccccccccc Radiative transfer |
---|
82 | |
---|
83 | c 2D |
---|
84 | |
---|
85 | call histwrite_phy(nid_mth,.false.,"topl",itau_w,toplw) |
---|
86 | call histwrite_phy(nid_mth,.false.,"sols",itau_w,solsw) |
---|
87 | call histwrite_phy(nid_mth,.false.,"soll",itau_w,sollw) |
---|
88 | |
---|
89 | c 3D |
---|
90 | |
---|
91 | call histwrite_phy(nid_mth,.false.,"SWnet",itau_w,swnet) |
---|
92 | call histwrite_phy(nid_mth,.false.,"LWnet",itau_w,lwnet) |
---|
93 | c call histwrite_phy(nid_mth,.false.,"fluxvdf",itau_w,fluxt) |
---|
94 | c call histwrite_phy(nid_mth,.false.,"fluxdyn",itau_w,flux_dyn) |
---|
95 | c call histwrite_phy(nid_mth,.false.,"fluxajs",itau_w,flux_ajs) |
---|
96 | c call histwrite_phy(nid_mth,.false.,"fluxec",itau_w,flux_ec) |
---|
97 | |
---|
98 | ENDIF !lev_histmth.GE.3 |
---|
99 | |
---|
100 | c------------------------------------------------------- |
---|
101 | IF(lev_histmth.GE.4) THEN |
---|
102 | |
---|
103 | c en K/s |
---|
104 | call histwrite_phy(nid_mth,.false.,"dtdyn",itau_w,d_t_dyn) |
---|
105 | c en K/s |
---|
106 | c call histwrite_phy(nid_mth,.false.,"dtphy",itau_w,d_t) |
---|
107 | c en K/s |
---|
108 | call histwrite_phy(nid_mth,.false.,"dtvdf",itau_w,d_t_vdf) |
---|
109 | c en K/s |
---|
110 | call histwrite_phy(nid_mth,.false.,"dtajs",itau_w,d_t_ajs) |
---|
111 | c en K/s |
---|
112 | call histwrite_phy(nid_mth,.false.,"dtswr",itau_w,dtsw) |
---|
113 | c call histwrite_phy(nid_mth,.false.,"dtswrNLTE",itau_w,d_t_nirco2) |
---|
114 | c call histwrite_phy(nid_mth,.false.,"dtswrDCrisp",itau_w,heat) |
---|
115 | c en K/s |
---|
116 | call histwrite_phy(nid_mth,.false.,"dtlwr",itau_w,dtlw) |
---|
117 | c en K/s |
---|
118 | c call histwrite_phy(nid_mth,.false.,"dtlwrNLTE",itau_w,d_t_nlte) |
---|
119 | c call histwrite_phy(nid_mth,.false.,"dtlwrLTE",itau_w,-1.*cool) |
---|
120 | c call histwrite_phy(nid_mth,.false.,"dteuv",itau_w,d_t_euv) |
---|
121 | c call histwrite_phy(nid_mth,.false.,"dtcond",itau_w,d_t_conduc) |
---|
122 | c call histwrite_phy(nid_mth,.false.,"dumolvis",itau_w,d_u_molvis) |
---|
123 | c call histwrite_phy(nid_mth,.false.,"dvmolvis",itau_w,-1.*d_v_molvis) |
---|
124 | |
---|
125 | c call histwrite_phy(nid_mth,.false.,"dtec",itau_w,d_t_ec) |
---|
126 | c en (m/s)/s |
---|
127 | call histwrite_phy(nid_mth,.false.,"duajs",itau_w,d_u_ajs) |
---|
128 | c en (m/s)/s |
---|
129 | call histwrite_phy(nid_mth,.false.,"dugwo",itau_w,d_u_oro) |
---|
130 | c en (m/s)/s |
---|
131 | call histwrite_phy(nid_mth,.false.,"dugwno",itau_w,d_u_hin) |
---|
132 | c en (m/s)/s |
---|
133 | |
---|
134 | |
---|
135 | c VENUS: regardee a l envers!!!!!!!!!!!!!!! |
---|
136 | c call histwrite_phy(nid_mth,.false.,"dvvdf",itau_w,-1.*d_v_vdf) |
---|
137 | |
---|
138 | ENDIF !lev_histmth.GE.4 |
---|
139 | |
---|
140 | c------------------------------------------------------- |
---|
141 | IF(lev_histmth.GE.5) THEN |
---|
142 | |
---|
143 | c call histwrite_phy(nid_mth,.false.,"taux_",itau_w,fluxu) |
---|
144 | c call histwrite_phy(nid_mth,.false.,"tauy_",itau_w,fluxv) |
---|
145 | c call histwrite_phy(nid_mth,.false.,"cdrm",itau_w,cdragm) |
---|
146 | c call histwrite_phy(nid_mth,.false.,"cdrh",itau_w,cdragh) |
---|
147 | |
---|
148 | ENDIF !lev_histmth.GE.5 |
---|
149 | c------------------------------------------------------- |
---|
150 | |
---|
151 | if (ok_sync) then |
---|
152 | call histsync(nid_mth) |
---|
153 | endif |
---|
154 | |
---|
155 | ENDIF |
---|
156 | |
---|