1 | ! |
---|
2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/write_histins.h,v 1.1.1.1 2004/05/19 12:53:09 lmdzadmin Exp $ |
---|
3 | ! |
---|
4 | IF (ok_instan) THEN |
---|
5 | |
---|
6 | itau_w = itau_phy + itap |
---|
7 | |
---|
8 | c------------------------------------------------------- |
---|
9 | IF(lev_histins.GE.1) THEN |
---|
10 | |
---|
11 | ccccccccccccc 2D fields, basics |
---|
12 | |
---|
13 | call histwrite_phy(nid_ins,.false.,"phis",itau_w,pphis) |
---|
14 | call histwrite_phy(nid_ins,.false.,"aire",itau_w,airephy) |
---|
15 | call histwrite_phy(nid_ins,.false.,"tsol",itau_w,ftsol) |
---|
16 | call histwrite_phy(nid_ins,.false.,"psol",itau_w,paprs(:,1)) |
---|
17 | c call histwrite_phy(nid_ins,.false.,"ue",itau_w,ue) |
---|
18 | c VENUS: regardee a l'envers!!!!!!!!!!!!!!! |
---|
19 | c call histwrite_phy(nid_ins,.false.,"ve",itau_w,-1.*ve) |
---|
20 | c call histwrite_phy(nid_ins,.false.,"cdragh",itau_w,cdragh) |
---|
21 | c call histwrite_phy(nid_ins,.false.,"cdragm",itau_w,cdragm) |
---|
22 | |
---|
23 | ENDIF !lev_histins.GE.1 |
---|
24 | |
---|
25 | c------------------------------------------------------- |
---|
26 | IF(lev_histins.GE.2) THEN |
---|
27 | |
---|
28 | ccccccccccccc 3D fields, basics |
---|
29 | |
---|
30 | call histwrite_phy(nid_ins,.false.,"temp",itau_w,t_seri) |
---|
31 | call histwrite_phy(nid_ins,.false.,"pres",itau_w,pplay) |
---|
32 | call histwrite_phy(nid_ins,.false.,"geop",itau_w,zphi) |
---|
33 | call histwrite_phy(nid_ins,.false.,"vitu",itau_w,u_seri) |
---|
34 | c VENUS: regardee a l'envers!!!!!!!!!!!!!!! |
---|
35 | call histwrite_phy(nid_ins,.false.,"vitv",itau_w,-1.*v_seri) |
---|
36 | call histwrite_phy(nid_ins,.false.,"vitw",itau_w,omega) |
---|
37 | c en (m/s)/s |
---|
38 | call histwrite_phy(nid_ins,.false.,"dudyn",itau_w,d_u_dyn) |
---|
39 | c en (m/s)/s |
---|
40 | call histwrite_phy(nid_ins,.false.,"duvdf",itau_w,d_u_vdf) |
---|
41 | c call histwrite_phy(nid_ins,.false.,"mang",itau_w,mang) |
---|
42 | c call histwrite_phy(nid_ins,.false.,"Kz",itau_w,ycoefh) |
---|
43 | |
---|
44 | c plusieurs traceurs |
---|
45 | IF (iflag_trac.eq.1) THEN |
---|
46 | DO iq=1,nqmax |
---|
47 | call histwrite_phy(nid_ins,.false.,tname(iq),itau_w,qx(:,:,iq)) |
---|
48 | ENDDO |
---|
49 | ENDIF |
---|
50 | |
---|
51 | call histwrite_phy(nid_ins,.false.,"tops",itau_w,topsw) |
---|
52 | |
---|
53 | if (ok_cloud) THEN |
---|
54 | call histwrite_phy(nid_ins,.false.,"NBRTOT",itau_w,NBRTOT) |
---|
55 | call histwrite_phy(nid_ins,.false.,"WH2SO4",itau_w,WH2SO4) |
---|
56 | call histwrite_phy(nid_ins,.false.,"R_MEDIAN",itau_w,R_MEDIAN) |
---|
57 | call histwrite_phy(nid_ins,.false.,"STDDEV",itau_w,STDDEV) |
---|
58 | call histwrite_phy(nid_ins,.false.,"rho_droplet", |
---|
59 | & itau_w,rho_droplet) |
---|
60 | endif |
---|
61 | |
---|
62 | if (ok_sedim) THEN |
---|
63 | call histwrite_phy(nid_ins,.false.,"d_tr_sed_H2SO4", |
---|
64 | & itau_w,d_tr_sed(:,:,1)) |
---|
65 | call histwrite_phy(nid_ins,.false.,"d_tr_sed_H2O", |
---|
66 | & itau_w,d_tr_sed(:,:,2)) |
---|
67 | call histwrite_phy(nid_ins,.false.,"F_sedim",itau_w,Fsedim) |
---|
68 | endif |
---|
69 | |
---|
70 | ENDIF !lev_histins.GE.2 |
---|
71 | |
---|
72 | c------------------------------------------------------- |
---|
73 | IF(lev_histins.GE.3) THEN |
---|
74 | |
---|
75 | cccccccccccccccccc Radiative transfer |
---|
76 | |
---|
77 | c 2D |
---|
78 | |
---|
79 | call histwrite_phy(nid_ins,.false.,"topl",itau_w,toplw) |
---|
80 | call histwrite_phy(nid_ins,.false.,"sols",itau_w,solsw) |
---|
81 | call histwrite_phy(nid_ins,.false.,"soll",itau_w,sollw) |
---|
82 | |
---|
83 | c 3D |
---|
84 | |
---|
85 | call histwrite_phy(nid_ins,.false.,"SWnet",itau_w,swnet) |
---|
86 | call histwrite_phy(nid_ins,.false.,"LWnet",itau_w,lwnet) |
---|
87 | c call histwrite_phy(nid_ins,.false.,"fluxvdf",itau_w,fluxt) |
---|
88 | c call histwrite_phy(nid_ins,.false.,"fluxdyn",itau_w,flux_dyn) |
---|
89 | c call histwrite_phy(nid_ins,.false.,"fluxajs",itau_w,flux_ajs) |
---|
90 | c call histwrite_phy(nid_ins,.false.,"fluxec",itau_w,flux_ec) |
---|
91 | |
---|
92 | ENDIF !lev_histins.GE.3 |
---|
93 | |
---|
94 | c------------------------------------------------------- |
---|
95 | IF(lev_histins.GE.4) THEN |
---|
96 | |
---|
97 | c en K/s |
---|
98 | call histwrite_phy(nid_ins,.false.,"dtdyn",itau_w,d_t_dyn) |
---|
99 | c en K/s |
---|
100 | c call histwrite_phy(nid_ins,.false.,"dtphy",itau_w,d_t) |
---|
101 | c en K/s |
---|
102 | call histwrite_phy(nid_ins,.false.,"dtvdf",itau_w,d_t_vdf) |
---|
103 | c en K/s |
---|
104 | call histwrite_phy(nid_ins,.false.,"dtajs",itau_w,d_t_ajs) |
---|
105 | c en K/s |
---|
106 | call histwrite_phy(nid_ins,.false.,"dtswr",itau_w,dtsw) |
---|
107 | c en K/s |
---|
108 | call histwrite_phy(nid_ins,.false.,"dtlwr",itau_w,dtlw) |
---|
109 | c en K/s |
---|
110 | c call histwrite_phy(nid_ins,.false.,"dtec",itau_w,d_t_ec) |
---|
111 | c en (m/s)/s |
---|
112 | call histwrite_phy(nid_ins,.false.,"duajs",itau_w,d_u_ajs) |
---|
113 | c en (m/s)/s |
---|
114 | call histwrite_phy(nid_ins,.false.,"dugwo",itau_w,d_u_oro) |
---|
115 | c en (m/s)/s |
---|
116 | call histwrite_phy(nid_ins,.false.,"dugwno",itau_w,d_u_hin) |
---|
117 | c en (m/s)/s |
---|
118 | c VENUS: regardee a l'envers!!!!!!!!!!!!!!! |
---|
119 | c call histwrite_phy(nid_ins,.false.,"dvvdf",itau_w,-1.*d_v_vdf) |
---|
120 | |
---|
121 | ENDIF !lev_histins.GE.4 |
---|
122 | |
---|
123 | c------------------------------------------------------- |
---|
124 | IF(lev_histins.GE.5) THEN |
---|
125 | |
---|
126 | c call histwrite_phy(nid_ins,.false.,"taux_",itau_w,fluxu) |
---|
127 | c call histwrite_phy(nid_ins,.false.,"tauy_",itau_w,fluxv) |
---|
128 | c call histwrite_phy(nid_ins,.false.,"cdrm",itau_w,cdragm) |
---|
129 | c call histwrite_phy(nid_ins,.false.,"cdrh",itau_w,cdragh) |
---|
130 | |
---|
131 | ENDIF !lev_histins.GE.5 |
---|
132 | c------------------------------------------------------- |
---|
133 | |
---|
134 | if (ok_sync) then |
---|
135 | call histsync(nid_ins) |
---|
136 | endif |
---|
137 | |
---|
138 | ENDIF |
---|