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

Last change on this file since 1519 was 1453, checked in by slebonnois, 10 years ago

SL: bugs in previous commit...

File size: 6.2 KB
RevLine 
[3]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
[892]5
[3]6         itau_w = itau_phy + itap
7
8c-------------------------------------------------------
[1305]9      IF(lev_histins.GE.1) THEN
[892]10
[888]11ccccccccccccc 2D fields, basics
[892]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)
[1442]18c VENUS: regardee a l' envers!!!!!!!!!!!!!!!
[892]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
[1305]23      ENDIF !lev_histins.GE.1
[892]24
[3]25c-------------------------------------------------------
[1305]26      IF(lev_histins.GE.2) THEN
[892]27
[888]28ccccccccccccc 3D fields, basics
[892]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)
[1442]34c VENUS: regardee a l' envers !!!!!!!!!!!!!!!
[892]35      call histwrite_phy(nid_ins,.false.,"vitv",itau_w,-1.*v_seri)
36      call histwrite_phy(nid_ins,.false.,"vitw",itau_w,omega)
[888]37c en (m/s)/s     
[892]38      call histwrite_phy(nid_ins,.false.,"dudyn",itau_w,d_u_dyn)
[888]39c en (m/s)/s     
[892]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)
[1453]43      call histwrite_phy(nid_ins,.false.,"mmean",itau_w,mmean)
44      call histwrite_phy(nid_ins,.false.,"rho",itau_w,rho)
[892]45
[1442]46c plusieurs traceurs  !!!outputs in [vmr]
[1452]47       IF (iflag_trac.eq.1) THEN
[888]48         DO iq=1,nqmax
[1442]49       call histwrite_phy(nid_ins,.false.,tname(iq),itau_w,qx(:,:,iq)*
50     &                    mmean(:,:)/M_tr(iq))
[888]51         ENDDO
52       ENDIF
[1452]53
54       IF (callthermos .and. ok_chem) THEN
[1453]55       call histwrite_phy(nid_ins,.false.,"d_qmoldifCO2",itau_w,
[1452]56     .                 d_q_moldif(:,:,i_co2))
[1453]57       call histwrite_phy(nid_ins,.false.,"d_qmoldifO3p",itau_w,
[1452]58     .                  d_q_moldif(:,:,i_o))
[1453]59       call histwrite_phy(nid_ins,.false.,"d_qmoldifN2",itau_w,
[1452]60     .                  d_q_moldif(:,:,i_n2))
61       ENDIF
[1442]62     
63       call histwrite_phy(nid_ins,.false.,"tops",itau_w,topsw)
64     
65       IF (ok_cloud) THEN
66       
67       IF (nb_mode.GE.1) THEN
68      call histwrite_phy(nid_ins,.false.,"NBRTOTm1",itau_w,
69     & NBRTOT(:,:,1))
70     
71c      call histwrite_phy(nid_ins,.false.,"R_MEDIANm1",itau_w,
72c     & R_MEDIAN(:,:,1))
73     
74c      call histwrite_phy(nid_ins,.false.,"STDDEVm1",itau_w,
75c     & STDDEV(:,:,1))
76       
77       IF (nb_mode.GE.2) THEN
78      call histwrite_phy(nid_ins,.false.,"NBRTOTm2",itau_w,
79     & NBRTOT(:,:,2))
80     
81c      call histwrite_phy(nid_ins,.false.,"R_MEDIANm2",itau_w,
82c     & R_MEDIAN(:,:,2)) 
83     
84c      call histwrite_phy(nid_ins,.false.,"STDDEVm2",itau_w,
85c     & STDDEV(:,:,2))
86         
87       IF (nb_mode.GE.3) THEN
88      call histwrite_phy(nid_ins,.false.,"NBRTOTm3",itau_w,
89     & NBRTOT(:,:,3))
90     
91c      call histwrite_phy(nid_ins,.false.,"R_MEDIANm3",itau_w,
92c     & R_MEDIAN(:,:,3))
93     
94c      call histwrite_phy(nid_ins,.false.,"STDDEVm3",itau_w,
95c     & STDDEV(:,:,3))
[892]96
[1442]97       ENDIF
98       ENDIF
99       ENDIF
100             
101      call histwrite_phy(nid_ins,.false.,"WH2SO4",itau_w,WH2SO4)
102     
103      call histwrite_phy(nid_ins,.false.,"rho_droplet",itau_w,
104     & rho_droplet)
105                ENDIF
106       IF (ok_sedim) THEN
107     
108      call histwrite_phy(nid_ins,.false.,"d_tr_sed_H2SO4",itau_w,
109     & d_tr_sed(:,:,1))     
110      call histwrite_phy(nid_ins,.false.,"d_tr_sed_H2O",itau_w,
111     & d_tr_sed(:,:,2))
112     
113      call histwrite_phy(nid_ins,.false.,"F_sedim",itau_w,Fsedim)
114                ENDIF             
[1305]115      ENDIF !lev_histins.GE.2
116
[888]117c-------------------------------------------------------
[1305]118      IF(lev_histins.GE.3) THEN
[892]119
[888]120cccccccccccccccccc  Radiative transfer
[892]121
[888]122c 2D
[892]123
124      call histwrite_phy(nid_ins,.false.,"topl",itau_w,toplw)
125      call histwrite_phy(nid_ins,.false.,"sols",itau_w,solsw)
126      call histwrite_phy(nid_ins,.false.,"soll",itau_w,sollw)
127
[888]128c 3D
[892]129
130      call histwrite_phy(nid_ins,.false.,"SWnet",itau_w,swnet)
131      call histwrite_phy(nid_ins,.false.,"LWnet",itau_w,lwnet)
132c     call histwrite_phy(nid_ins,.false.,"fluxvdf",itau_w,fluxt)
133c     call histwrite_phy(nid_ins,.false.,"fluxdyn",itau_w,flux_dyn)
134c     call histwrite_phy(nid_ins,.false.,"fluxajs",itau_w,flux_ajs)
135c     call histwrite_phy(nid_ins,.false.,"fluxec",itau_w,flux_ec)
136
[1305]137      ENDIF !lev_histins.GE.3
[892]138
[888]139c-------------------------------------------------------
[1305]140      IF(lev_histins.GE.4) THEN
[892]141
[888]142c en K/s     
[892]143      call histwrite_phy(nid_ins,.false.,"dtdyn",itau_w,d_t_dyn)
[888]144c en K/s     
[892]145c     call histwrite_phy(nid_ins,.false.,"dtphy",itau_w,d_t)
[888]146c en K/s     
[892]147      call histwrite_phy(nid_ins,.false.,"dtvdf",itau_w,d_t_vdf)
[888]148c en K/s     
[892]149      call histwrite_phy(nid_ins,.false.,"dtajs",itau_w,d_t_ajs)
[1442]150c K/day ==> K/s
151      call histwrite_phy(nid_ins,.false.,"dtswr",itau_w,heat/RDAY)
152c K/day ==> K/s     
153      call histwrite_phy(nid_ins,.false.,"dtlwr",itau_w,-1.*cool/RDAY)
[888]154c en K/s     
[892]155c     call histwrite_phy(nid_ins,.false.,"dtec",itau_w,d_t_ec)
[888]156c en (m/s)/s     
[892]157      call histwrite_phy(nid_ins,.false.,"duajs",itau_w,d_u_ajs)
[888]158c en (m/s)/s     
[892]159      call histwrite_phy(nid_ins,.false.,"dugwo",itau_w,d_u_oro)
[888]160c en (m/s)/s     
[892]161      call histwrite_phy(nid_ins,.false.,"dugwno",itau_w,d_u_hin)
[888]162c en (m/s)/s     
[1442]163c VENUS: regardee a l envers!!!!!!!!!!!!!!!
[892]164c     call histwrite_phy(nid_ins,.false.,"dvvdf",itau_w,-1.*d_v_vdf)
165
[1305]166      ENDIF !lev_histins.GE.4
[892]167
[888]168c-------------------------------------------------------
[1305]169      IF(lev_histins.GE.5) THEN
[892]170
171c     call histwrite_phy(nid_ins,.false.,"taux_",itau_w,fluxu)
172c     call histwrite_phy(nid_ins,.false.,"tauy_",itau_w,fluxv)
173c     call histwrite_phy(nid_ins,.false.,"cdrm",itau_w,cdragm)
174c     call histwrite_phy(nid_ins,.false.,"cdrh",itau_w,cdragh)
175
[1305]176      ENDIF !lev_histins.GE.5
[888]177c-------------------------------------------------------
[892]178
[3]179      if (ok_sync) then
180        call histsync(nid_ins)
181      endif
[892]182
[3]183      ENDIF
Note: See TracBrowser for help on using the repository browser.