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