source: trunk/LMDZ.VENUS/libf/phyvenus/write_histmth.h @ 894

Last change on this file since 894 was 892, checked in by slebonnois, 12 years ago

SL: Important commit ! Adaptation of Venus physics to parallel computation / template for arch on the LMD servers using ifort / documentation for 1D column physics and for parallel computations

File size: 4.3 KB
Line 
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         zsto = dtime
7         zout = dtime * ecrit_mth
8         itau_w = itau_phy + itap
9
10c-------------------------------------------------------
11      IF(lev_histmth.GE.1) THEN
12
13ccccccccccccc 2D fields, basics
14
15      call histwrite_phy(nid_mth,.false.,"phis",itau_w,pphis)
16      call histwrite_phy(nid_mth,.false.,"aire",itau_w,airephy)
17      call histwrite_phy(nid_mth,.false.,"tsol",itau_w,ftsol)
18      call histwrite_phy(nid_mth,.false.,"psol",itau_w,paprs(:,1))
19c     call histwrite_phy(nid_mth,.false.,"ue",itau_w,ue)
20c VENUS: regardee a l'envers!!!!!!!!!!!!!!!
21c     call histwrite_phy(nid_mth,.false.,"ve",itau_w,-1.*ve)
22c     call histwrite_phy(nid_mth,.false.,"cdragh",itau_w,cdragh)
23c     call histwrite_phy(nid_mth,.false.,"cdragm",itau_w,cdragm)
24
25      ENDIF !lev_histmth.GE.1
26
27c-------------------------------------------------------
28      IF(lev_histmth.GE.2) THEN
29
30ccccccccccccc 3D fields, basics
31
32      call histwrite_phy(nid_mth,.false.,"temp",itau_w,t_seri)
33      call histwrite_phy(nid_mth,.false.,"pres",itau_w,pplay)
34      call histwrite_phy(nid_mth,.false.,"geop",itau_w,zphi)
35      call histwrite_phy(nid_mth,.false.,"vitu",itau_w,u_seri)
36c VENUS: regardee a l'envers!!!!!!!!!!!!!!!
37      call histwrite_phy(nid_mth,.false.,"vitv",itau_w,-1.*v_seri)
38      call histwrite_phy(nid_mth,.false.,"vitw",itau_w,omega)
39c en (m/s)/s     
40      call histwrite_phy(nid_mth,.false.,"dudyn",itau_w,d_u_dyn)
41c en (m/s)/s     
42      call histwrite_phy(nid_mth,.false.,"duvdf",itau_w,d_u_vdf)
43c     call histwrite_phy(nid_mth,.false.,"mang",itau_w,mang)
44c     call histwrite_phy(nid_mth,.false.,"Kz",itau_w,ycoefh)
45
46c plusieurs traceurs
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         ENDDO
51       ENDIF
52
53      call histwrite_phy(nid_mth,.false.,"tops",itau_w,topsw)
54
55      ENDIF !lev_histmth.GE.2
56
57c-------------------------------------------------------
58      IF(lev_histmth.GE.3) THEN
59
60cccccccccccccccccc  Radiative transfer
61
62c 2D
63
64      call histwrite_phy(nid_mth,.false.,"topl",itau_w,toplw)
65      call histwrite_phy(nid_mth,.false.,"sols",itau_w,solsw)
66      call histwrite_phy(nid_mth,.false.,"soll",itau_w,sollw)
67
68c 3D
69
70      call histwrite_phy(nid_mth,.false.,"SWnet",itau_w,swnet)
71      call histwrite_phy(nid_mth,.false.,"LWnet",itau_w,lwnet)
72c     call histwrite_phy(nid_mth,.false.,"fluxvdf",itau_w,fluxt)
73c     call histwrite_phy(nid_mth,.false.,"fluxdyn",itau_w,flux_dyn)
74c     call histwrite_phy(nid_mth,.false.,"fluxajs",itau_w,flux_ajs)
75c     call histwrite_phy(nid_mth,.false.,"fluxec",itau_w,flux_ec)
76
77      ENDIF !lev_histmth.GE.3
78
79c-------------------------------------------------------
80      IF(lev_histmth.GE.4) THEN
81
82c en K/s     
83      call histwrite_phy(nid_mth,.false.,"dtdyn",itau_w,d_t_dyn)
84c en K/s     
85c     call histwrite_phy(nid_mth,.false.,"dtphy",itau_w,d_t)
86c en K/s     
87      call histwrite_phy(nid_mth,.false.,"dtvdf",itau_w,d_t_vdf)
88c en K/s     
89      call histwrite_phy(nid_mth,.false.,"dtajs",itau_w,d_t_ajs)
90c K/day ==> K/s
91      call histwrite_phy(nid_mth,.false.,"dtswr",itau_w,heat/RDAY)
92c K/day ==> K/s     
93      call histwrite_phy(nid_mth,.false.,"dtlwr",itau_w,-1.*cool/RDAY)
94c en K/s     
95c     call histwrite_phy(nid_mth,.false.,"dtec",itau_w,d_t_ec)
96c en (m/s)/s     
97      call histwrite_phy(nid_mth,.false.,"duajs",itau_w,d_u_ajs)
98c en (m/s)/s     
99      call histwrite_phy(nid_mth,.false.,"dugwo",itau_w,d_u_oro)
100c en (m/s)/s     
101      call histwrite_phy(nid_mth,.false.,"dugwno",itau_w,d_u_hin)
102c en (m/s)/s     
103c VENUS: regardee a l'envers!!!!!!!!!!!!!!!
104c     call histwrite_phy(nid_mth,.false.,"dvvdf",itau_w,-1.*d_v_vdf)
105
106      ENDIF !lev_histmth.GE.4
107c
108c-------------------------------------------------------
109       IF(lev_histmth.GE.5) THEN
110
111c     call histwrite_phy(nid_mth,.false.,"taux_",itau_w,fluxu)
112c     call histwrite_phy(nid_mth,.false.,"tauy_",itau_w,fluxv)
113c     call histwrite_phy(nid_mth,.false.,"cdrm",itau_w,cdragm)
114c     call histwrite_phy(nid_mth,.false.,"cdrh",itau_w,cdragh)
115
116      ENDIF !lev_histmth.GE.5
117c-------------------------------------------------------
118c
119      if (ok_sync) then
120        call histsync(nid_mth)
121      endif
122
123      ENDIF
Note: See TracBrowser for help on using the repository browser.