source: trunk/LMDZ.VENUS/libf/phyvenus/write_histins.h @ 1396

Last change on this file since 1396 was 1310, checked in by slebonnois, 11 years ago

SL: VENUS VERTICAL EXTENSION. NLTE and thermospheric processes, to be run with 78 levels and specific inputs.

File size: 5.0 KB
Line 
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
8c-------------------------------------------------------
9      IF(lev_histins.GE.1) THEN
10
11ccccccccccccc 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))
17c     call histwrite_phy(nid_ins,.false.,"ue",itau_w,ue)
18c VENUS: regardee a l'envers!!!!!!!!!!!!!!!
19c     call histwrite_phy(nid_ins,.false.,"ve",itau_w,-1.*ve)
20c     call histwrite_phy(nid_ins,.false.,"cdragh",itau_w,cdragh)
21c     call histwrite_phy(nid_ins,.false.,"cdragm",itau_w,cdragm)
22
23      ENDIF !lev_histins.GE.1
24
25c-------------------------------------------------------
26      IF(lev_histins.GE.2) THEN
27
28ccccccccccccc 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)
34c 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)
37c en (m/s)/s     
38      call histwrite_phy(nid_ins,.false.,"dudyn",itau_w,d_u_dyn)
39c en (m/s)/s     
40      call histwrite_phy(nid_ins,.false.,"duvdf",itau_w,d_u_vdf)
41c     call histwrite_phy(nid_ins,.false.,"mang",itau_w,mang)
42c     call histwrite_phy(nid_ins,.false.,"Kz",itau_w,ycoefh)
43
44c 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
72c-------------------------------------------------------
73      IF(lev_histins.GE.3) THEN
74
75cccccccccccccccccc  Radiative transfer
76
77c 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
83c 3D
84
85      call histwrite_phy(nid_ins,.false.,"SWnet",itau_w,swnet)
86      call histwrite_phy(nid_ins,.false.,"LWnet",itau_w,lwnet)
87c     call histwrite_phy(nid_ins,.false.,"fluxvdf",itau_w,fluxt)
88c     call histwrite_phy(nid_ins,.false.,"fluxdyn",itau_w,flux_dyn)
89c     call histwrite_phy(nid_ins,.false.,"fluxajs",itau_w,flux_ajs)
90c     call histwrite_phy(nid_ins,.false.,"fluxec",itau_w,flux_ec)
91
92      ENDIF !lev_histins.GE.3
93
94c-------------------------------------------------------
95      IF(lev_histins.GE.4) THEN
96
97c en K/s     
98      call histwrite_phy(nid_ins,.false.,"dtdyn",itau_w,d_t_dyn)
99c en K/s     
100c     call histwrite_phy(nid_ins,.false.,"dtphy",itau_w,d_t)
101c en K/s     
102      call histwrite_phy(nid_ins,.false.,"dtvdf",itau_w,d_t_vdf)
103c en K/s     
104      call histwrite_phy(nid_ins,.false.,"dtajs",itau_w,d_t_ajs)
105c en K/s     
106      call histwrite_phy(nid_ins,.false.,"dtswr",itau_w,dtsw)
107c en K/s     
108      call histwrite_phy(nid_ins,.false.,"dtlwr",itau_w,dtlw)
109c en K/s     
110c     call histwrite_phy(nid_ins,.false.,"dtec",itau_w,d_t_ec)
111c en (m/s)/s     
112      call histwrite_phy(nid_ins,.false.,"duajs",itau_w,d_u_ajs)
113c en (m/s)/s     
114      call histwrite_phy(nid_ins,.false.,"dugwo",itau_w,d_u_oro)
115c en (m/s)/s     
116      call histwrite_phy(nid_ins,.false.,"dugwno",itau_w,d_u_hin)
117c en (m/s)/s     
118c VENUS: regardee a l'envers!!!!!!!!!!!!!!!
119c     call histwrite_phy(nid_ins,.false.,"dvvdf",itau_w,-1.*d_v_vdf)
120
121      ENDIF !lev_histins.GE.4
122
123c-------------------------------------------------------
124      IF(lev_histins.GE.5) THEN
125
126c     call histwrite_phy(nid_ins,.false.,"taux_",itau_w,fluxu)
127c     call histwrite_phy(nid_ins,.false.,"tauy_",itau_w,fluxv)
128c     call histwrite_phy(nid_ins,.false.,"cdrm",itau_w,cdragm)
129c     call histwrite_phy(nid_ins,.false.,"cdrh",itau_w,cdragh)
130
131      ENDIF !lev_histins.GE.5
132c-------------------------------------------------------
133
134      if (ok_sync) then
135        call histsync(nid_ins)
136      endif
137
138      ENDIF
Note: See TracBrowser for help on using the repository browser.