21 #include "dimensions.h"
26 #include "tracstoke.h"
30 REAL time_step,t_wrt, t_ops
40 REAL pbarvst(iip1,
jjp1,llm),zistdyn
43 INTEGER iadvtr,ndex(1)
45 real tst(1),ist(1),istp(1)
47 INTEGER,
SAVE :: fluxid, fluxvid,fluxdid
49 SAVE iadvtr, massem,
irec
55 integer :: ijb,ije,jjb,jje,jjn
69 . fluxid,fluxvid,fluxdid)
76 call histwrite(fluxid,
'phis', 1,
phis(ijb:ije),
78 call histwrite(fluxid,
'aire', 1,
aire(ijb:ije),
86 call histwrite(fluxdid,
'dtvr', 1, tst, nscal, ndex)
88 call histwrite(fluxdid,
'istdyn', 1, ist, nscal, ndex)
90 call histwrite(fluxdid,
'istphy', 1, istp, nscal, ndex)
104 phic(ijb:ije,1:llm)=0
105 tetac(ijb:ije,1:llm)=0
106 pbaruc(ijb:ije,1:llm)=0
108 IF (pole_sud) ije=ij_end-iip1
109 pbarvc(ijb:ije,1:llm)=0
118 pbaruc(
ij,
l) = pbaruc(
ij,
l) + pbaru(
ij,
l)
126 if (pole_sud) ije=ij_end-iip1
130 pbarvc(
ij,
l) = pbarvc(
ij,
l) + pbarv(
ij,
l)
139 massem(ijb:ije,1:llm)=masse(ijb:ije,1:llm)
147 IF ( iadvtr.EQ.
istdyn )
THEN
163 if (pole_sud) ije=ij_end-iip1
183 CALL
groupe_p( massem, pbaruc,pbarvc, pbarug,pbarvg,wg )
187 if (pole_sud) jje=jj_end-1
192 pbarvst(
i,
j,
l)=pbarvg(
i,
j,
l)
204 write(
lunout,*)
'ITAU auquel on stoke les fluxmasses',itau
210 call histwrite(fluxid,
'masse', itau, massem(ijb:ije,:),
211 . iip1*jjn*llm, ndex)
213 call histwrite(fluxid,
'pbaru', itau, pbarug(ijb:ije,:),
214 . iip1*jjn*llm, ndex)
224 call histwrite(fluxvid,
'pbarv', itau, pbarvg(:,jjb:jje,:),
225 . iip1*jjn*llm, ndex)
231 call histwrite(fluxid,
'w' ,itau, wg(ijb:ije,:),
232 . iip1*jjn*llm, ndex)
234 call histwrite(fluxid,
'teta' ,itau, tetac(ijb:ije,:),
235 . iip1*jjn*llm, ndex)
237 call histwrite(fluxid,
'phi' ,itau, phic(ijb:ije,:),
238 . iip1*jjn*llm, ndex)
246 &
'fluxstokenc: Needs IOIPSL to function'