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

Last change on this file since 3461 was 2560, checked in by slebonnois, 3 years ago

SL: Implementation of SW computation based on generic model. Switch between this new SW module or old module that reads R. Haus tables implemented with a key (solarchoice)

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