[524] | 1 | ! |
---|
| 2 | ! $Header$ |
---|
| 3 | ! |
---|
| 4 | SUBROUTINE diagphy(airephy,tit,iprt |
---|
| 5 | $ , tops, topl, sols, soll, sens |
---|
| 6 | $ , evap, rain_fall, snow_fall, ts |
---|
| 7 | $ , d_etp_tot, d_qt_tot, d_ec_tot |
---|
| 8 | $ , fs_bound, fq_bound) |
---|
| 9 | C====================================================================== |
---|
| 10 | C |
---|
| 11 | C Purpose: |
---|
| 12 | C Compute the thermal flux and the watter mass flux at the atmosphere |
---|
| 13 | c boundaries. Print them and also the atmospheric enthalpy change and |
---|
| 14 | C the atmospheric mass change. |
---|
| 15 | C |
---|
| 16 | C Arguments: |
---|
| 17 | C airephy-------input-R- grid area |
---|
| 18 | C tit---------input-A15- Comment to be added in PRINT (CHARACTER*15) |
---|
| 19 | C iprt--------input-I- PRINT level ( <=0 : no PRINT) |
---|
| 20 | C tops(klon)--input-R- SW rad. at TOA (W/m2), positive up. |
---|
| 21 | C topl(klon)--input-R- LW rad. at TOA (W/m2), positive down |
---|
| 22 | C sols(klon)--input-R- Net SW flux above surface (W/m2), positive up |
---|
| 23 | C (i.e. -1 * flux absorbed by the surface) |
---|
| 24 | C soll(klon)--input-R- Net LW flux above surface (W/m2), positive up |
---|
| 25 | C (i.e. flux emited - flux absorbed by the surface) |
---|
| 26 | C sens(klon)--input-R- Sensible Flux at surface (W/m2), positive down |
---|
| 27 | C evap(klon)--input-R- Evaporation + sublimation watter vapour mass flux |
---|
| 28 | C (kg/m2/s), positive up |
---|
| 29 | C rain_fall(klon) |
---|
| 30 | C --input-R- Liquid watter mass flux (kg/m2/s), positive down |
---|
| 31 | C snow_fall(klon) |
---|
| 32 | C --input-R- Solid watter mass flux (kg/m2/s), positive down |
---|
| 33 | C ts(klon)----input-R- Surface temperature (K) |
---|
| 34 | C d_etp_tot---input-R- Heat flux equivalent to atmospheric enthalpy |
---|
| 35 | C change (W/m2) |
---|
| 36 | C d_qt_tot----input-R- Mass flux equivalent to atmospheric watter mass |
---|
| 37 | C change (kg/m2/s) |
---|
| 38 | C d_ec_tot----input-R- Flux equivalent to atmospheric cinetic energy |
---|
| 39 | C change (W/m2) |
---|
| 40 | C |
---|
| 41 | C fs_bound---output-R- Thermal flux at the atmosphere boundaries (W/m2) |
---|
| 42 | C fq_bound---output-R- Watter mass flux at the atmosphere boundaries (kg/m2/s) |
---|
| 43 | C |
---|
| 44 | C J.L. Dufresne, July 2002 |
---|
[879] | 45 | C Version prise sur ~rlmd833/LMDZOR_201102/modipsl/modeles/LMDZ.3.3/libf/phylmd |
---|
| 46 | C le 25 Novembre 2002. |
---|
[524] | 47 | C====================================================================== |
---|
| 48 | C |
---|
| 49 | implicit none |
---|
| 50 | |
---|
| 51 | #include "dimensions.h" |
---|
| 52 | #include "dimphy.h" |
---|
| 53 | #include "YOMCST.h" |
---|
| 54 | #include "YOETHF.h" |
---|
| 55 | C |
---|
| 56 | C Input variables |
---|
| 57 | real airephy(klon) |
---|
| 58 | CHARACTER*15 tit |
---|
| 59 | INTEGER iprt |
---|
| 60 | real tops(klon),topl(klon),sols(klon),soll(klon) |
---|
| 61 | real sens(klon),evap(klon),rain_fall(klon),snow_fall(klon) |
---|
| 62 | REAL ts(klon) |
---|
| 63 | REAL d_etp_tot, d_qt_tot, d_ec_tot |
---|
| 64 | c Output variables |
---|
| 65 | REAL fs_bound, fq_bound |
---|
| 66 | C |
---|
| 67 | C Local variables |
---|
| 68 | real stops,stopl,ssols,ssoll |
---|
| 69 | real ssens,sfront,slat |
---|
| 70 | real airetot, zcpvap, zcwat, zcice |
---|
| 71 | REAL rain_fall_tot, snow_fall_tot, evap_tot |
---|
| 72 | C |
---|
| 73 | integer i |
---|
| 74 | C |
---|
| 75 | integer pas |
---|
| 76 | save pas |
---|
| 77 | data pas/0/ |
---|
[766] | 78 | c$OMP THREADPRIVATE(pas) |
---|
[524] | 79 | C |
---|
| 80 | pas=pas+1 |
---|
| 81 | stops=0. |
---|
| 82 | stopl=0. |
---|
| 83 | ssols=0. |
---|
| 84 | ssoll=0. |
---|
| 85 | ssens=0. |
---|
| 86 | sfront = 0. |
---|
| 87 | evap_tot = 0. |
---|
| 88 | rain_fall_tot = 0. |
---|
| 89 | snow_fall_tot = 0. |
---|
| 90 | airetot=0. |
---|
| 91 | C |
---|
| 92 | C Pour les chaleur specifiques de la vapeur d'eau, de l'eau et de |
---|
| 93 | C la glace, on travaille par difference a la chaleur specifique de l' |
---|
| 94 | c air sec. En effet, comme on travaille a niveau de pression donne, |
---|
| 95 | C toute variation de la masse d'un constituant est totalement |
---|
| 96 | c compense par une variation de masse d'air. |
---|
| 97 | C |
---|
| 98 | zcpvap=RCPV-RCPD |
---|
| 99 | zcwat=RCW-RCPD |
---|
| 100 | zcice=RCS-RCPD |
---|
| 101 | C |
---|
| 102 | do i=1,klon |
---|
| 103 | stops=stops+tops(i)*airephy(i) |
---|
| 104 | stopl=stopl+topl(i)*airephy(i) |
---|
| 105 | ssols=ssols+sols(i)*airephy(i) |
---|
| 106 | ssoll=ssoll+soll(i)*airephy(i) |
---|
| 107 | ssens=ssens+sens(i)*airephy(i) |
---|
| 108 | sfront = sfront |
---|
| 109 | $ + ( evap(i)*zcpvap-rain_fall(i)*zcwat-snow_fall(i)*zcice |
---|
| 110 | $ ) *ts(i) *airephy(i) |
---|
| 111 | evap_tot = evap_tot + evap(i)*airephy(i) |
---|
| 112 | rain_fall_tot = rain_fall_tot + rain_fall(i)*airephy(i) |
---|
| 113 | snow_fall_tot = snow_fall_tot + snow_fall(i)*airephy(i) |
---|
| 114 | airetot=airetot+airephy(i) |
---|
| 115 | enddo |
---|
| 116 | stops=stops/airetot |
---|
| 117 | stopl=stopl/airetot |
---|
| 118 | ssols=ssols/airetot |
---|
| 119 | ssoll=ssoll/airetot |
---|
| 120 | ssens=ssens/airetot |
---|
| 121 | sfront = sfront/airetot |
---|
| 122 | evap_tot = evap_tot /airetot |
---|
| 123 | rain_fall_tot = rain_fall_tot/airetot |
---|
| 124 | snow_fall_tot = snow_fall_tot/airetot |
---|
| 125 | C |
---|
| 126 | slat = RLVTT * rain_fall_tot + RLSTT * snow_fall_tot |
---|
| 127 | C Heat flux at atm. boundaries |
---|
| 128 | fs_bound = stops-stopl - (ssols+ssoll)+ssens+sfront |
---|
| 129 | $ + slat |
---|
| 130 | C Watter flux at atm. boundaries |
---|
| 131 | fq_bound = evap_tot - rain_fall_tot -snow_fall_tot |
---|
| 132 | C |
---|
| 133 | IF (iprt.ge.1) write(6,6666) |
---|
| 134 | $ tit, pas, fs_bound, d_etp_tot, fq_bound, d_qt_tot |
---|
| 135 | C |
---|
| 136 | IF (iprt.ge.1) write(6,6668) |
---|
| 137 | $ tit, pas, d_etp_tot+d_ec_tot-fs_bound, d_qt_tot-fq_bound |
---|
| 138 | C |
---|
| 139 | IF (iprt.ge.2) write(6,6667) |
---|
| 140 | $ tit, pas, stops,stopl,ssols,ssoll,ssens,slat,evap_tot |
---|
| 141 | $ ,rain_fall_tot+snow_fall_tot |
---|
| 142 | |
---|
| 143 | return |
---|
| 144 | |
---|
| 145 | 6666 format('Phys. Flux Budget ',a15,1i6,2f8.2,2(1pE13.5)) |
---|
| 146 | 6667 format('Phys. Boundary Flux ',a15,1i6,6f8.2,2(1pE13.5)) |
---|
| 147 | 6668 format('Phys. Total Budget ',a15,1i6,f8.2,2(1pE13.5)) |
---|
| 148 | |
---|
| 149 | end |
---|
| 150 | |
---|
| 151 | C====================================================================== |
---|
| 152 | SUBROUTINE diagetpq(airephy,tit,iprt,idiag,idiag2,dtime |
---|
| 153 | e ,t,q,ql,qs,u,v,paprs,pplay |
---|
| 154 | s , d_h_vcol, d_qt, d_qw, d_ql, d_qs, d_ec) |
---|
| 155 | C====================================================================== |
---|
| 156 | C |
---|
| 157 | C Purpose: |
---|
| 158 | C Calcul la difference d'enthalpie et de masse d'eau entre 2 appels, |
---|
| 159 | C et calcul le flux de chaleur et le flux d'eau necessaire a ces |
---|
| 160 | C changements. Ces valeurs sont moyennees sur la surface de tout |
---|
| 161 | C le globe et sont exprime en W/2 et kg/s/m2 |
---|
| 162 | C Outil pour diagnostiquer la conservation de l'energie |
---|
| 163 | C et de la masse dans la physique. Suppose que les niveau de |
---|
| 164 | c pression entre couche ne varie pas entre 2 appels. |
---|
| 165 | C |
---|
| 166 | C Plusieurs de ces diagnostics peuvent etre fait en parallele: les |
---|
| 167 | c bilans sont sauvegardes dans des tableaux indices. On parlera |
---|
| 168 | C "d'indice de diagnostic" |
---|
| 169 | c |
---|
| 170 | C |
---|
| 171 | c====================================================================== |
---|
| 172 | C Arguments: |
---|
| 173 | C airephy-------input-R- grid area |
---|
| 174 | C tit-----imput-A15- Comment added in PRINT (CHARACTER*15) |
---|
| 175 | C iprt----input-I- PRINT level ( <=1 : no PRINT) |
---|
| 176 | C idiag---input-I- indice dans lequel sera range les nouveaux |
---|
| 177 | C bilans d' entalpie et de masse |
---|
| 178 | C idiag2--input-I-les nouveaux bilans d'entalpie et de masse |
---|
| 179 | C sont compare au bilan de d'enthalpie de masse de |
---|
| 180 | C l'indice numero idiag2 |
---|
| 181 | C Cas parriculier : si idiag2=0, pas de comparaison, on |
---|
| 182 | c sort directement les bilans d'enthalpie et de masse |
---|
| 183 | C dtime----input-R- time step (s) |
---|
| 184 | c t--------input-R- temperature (K) |
---|
| 185 | c q--------input-R- vapeur d'eau (kg/kg) |
---|
| 186 | c ql-------input-R- liquid watter (kg/kg) |
---|
| 187 | c qs-------input-R- solid watter (kg/kg) |
---|
| 188 | c u--------input-R- vitesse u |
---|
| 189 | c v--------input-R- vitesse v |
---|
| 190 | c paprs----input-R- pression a intercouche (Pa) |
---|
| 191 | c pplay----input-R- pression au milieu de couche (Pa) |
---|
| 192 | c |
---|
| 193 | C the following total value are computed by UNIT of earth surface |
---|
| 194 | C |
---|
| 195 | C d_h_vcol--output-R- Heat flux (W/m2) define as the Enthalpy |
---|
| 196 | c change (J/m2) during one time step (dtime) for the whole |
---|
| 197 | C atmosphere (air, watter vapour, liquid and solid) |
---|
| 198 | C d_qt------output-R- total water mass flux (kg/m2/s) defined as the |
---|
| 199 | C total watter (kg/m2) change during one time step (dtime), |
---|
| 200 | C d_qw------output-R- same, for the watter vapour only (kg/m2/s) |
---|
| 201 | C d_ql------output-R- same, for the liquid watter only (kg/m2/s) |
---|
| 202 | C d_qs------output-R- same, for the solid watter only (kg/m2/s) |
---|
| 203 | C d_ec------output-R- Cinetic Energy Budget (W/m2) for vertical air column |
---|
| 204 | C |
---|
| 205 | C other (COMMON...) |
---|
| 206 | C RCPD, RCPV, .... |
---|
| 207 | C |
---|
| 208 | C J.L. Dufresne, July 2002 |
---|
| 209 | c====================================================================== |
---|
| 210 | |
---|
| 211 | IMPLICIT NONE |
---|
| 212 | C |
---|
| 213 | #include "dimensions.h" |
---|
| 214 | #include "dimphy.h" |
---|
| 215 | #include "YOMCST.h" |
---|
| 216 | #include "YOETHF.h" |
---|
| 217 | C |
---|
| 218 | c Input variables |
---|
| 219 | real airephy(klon) |
---|
| 220 | CHARACTER*15 tit |
---|
| 221 | INTEGER iprt,idiag, idiag2 |
---|
| 222 | REAL dtime |
---|
| 223 | REAL t(klon,klev), q(klon,klev), ql(klon,klev), qs(klon,klev) |
---|
| 224 | REAL u(klon,klev), v(klon,klev) |
---|
| 225 | REAL paprs(klon,klev+1), pplay(klon,klev) |
---|
| 226 | c Output variables |
---|
| 227 | REAL d_h_vcol, d_qt, d_qw, d_ql, d_qs, d_ec |
---|
| 228 | C |
---|
| 229 | C Local variables |
---|
| 230 | c |
---|
| 231 | REAL h_vcol_tot, h_dair_tot, h_qw_tot, h_ql_tot |
---|
| 232 | . , h_qs_tot, qw_tot, ql_tot, qs_tot , ec_tot |
---|
| 233 | c h_vcol_tot-- total enthalpy of vertical air column |
---|
| 234 | C (air with watter vapour, liquid and solid) (J/m2) |
---|
| 235 | c h_dair_tot-- total enthalpy of dry air (J/m2) |
---|
| 236 | c h_qw_tot---- total enthalpy of watter vapour (J/m2) |
---|
| 237 | c h_ql_tot---- total enthalpy of liquid watter (J/m2) |
---|
| 238 | c h_qs_tot---- total enthalpy of solid watter (J/m2) |
---|
| 239 | c qw_tot------ total mass of watter vapour (kg/m2) |
---|
| 240 | c ql_tot------ total mass of liquid watter (kg/m2) |
---|
| 241 | c qs_tot------ total mass of solid watter (kg/m2) |
---|
| 242 | c ec_tot------ total cinetic energy (kg/m2) |
---|
| 243 | C |
---|
| 244 | REAL zairm(klon,klev) ! layer air mass (kg/m2) |
---|
| 245 | REAL zqw_col(klon) |
---|
| 246 | REAL zql_col(klon) |
---|
| 247 | REAL zqs_col(klon) |
---|
| 248 | REAL zec_col(klon) |
---|
| 249 | REAL zh_dair_col(klon) |
---|
| 250 | REAL zh_qw_col(klon), zh_ql_col(klon), zh_qs_col(klon) |
---|
| 251 | C |
---|
| 252 | REAL d_h_dair, d_h_qw, d_h_ql, d_h_qs |
---|
| 253 | C |
---|
| 254 | REAL airetot, zcpvap, zcwat, zcice |
---|
| 255 | C |
---|
| 256 | INTEGER i, k |
---|
| 257 | C |
---|
| 258 | INTEGER ndiag ! max number of diagnostic in parallel |
---|
| 259 | PARAMETER (ndiag=10) |
---|
| 260 | integer pas(ndiag) |
---|
| 261 | save pas |
---|
| 262 | data pas/ndiag*0/ |
---|
[766] | 263 | c$OMP THREADPRIVATE(pas) |
---|
[524] | 264 | C |
---|
| 265 | REAL h_vcol_pre(ndiag), h_dair_pre(ndiag), h_qw_pre(ndiag) |
---|
| 266 | $ , h_ql_pre(ndiag), h_qs_pre(ndiag), qw_pre(ndiag) |
---|
| 267 | $ , ql_pre(ndiag), qs_pre(ndiag) , ec_pre(ndiag) |
---|
| 268 | SAVE h_vcol_pre, h_dair_pre, h_qw_pre, h_ql_pre |
---|
| 269 | $ , h_qs_pre, qw_pre, ql_pre, qs_pre , ec_pre |
---|
[766] | 270 | c$OMP THREADPRIVATE(h_vcol_pre, h_dair_pre, h_qw_pre, h_ql_pre) |
---|
| 271 | c$OMP THREADPRIVATE(h_qs_pre, qw_pre, ql_pre, qs_pre , ec_pre) |
---|
[524] | 272 | c====================================================================== |
---|
| 273 | C |
---|
| 274 | DO k = 1, klev |
---|
| 275 | DO i = 1, klon |
---|
| 276 | C layer air mass |
---|
| 277 | zairm(i,k) = (paprs(i,k)-paprs(i,k+1))/RG |
---|
| 278 | ENDDO |
---|
| 279 | END DO |
---|
| 280 | C |
---|
| 281 | C Reset variables |
---|
| 282 | DO i = 1, klon |
---|
| 283 | zqw_col(i)=0. |
---|
| 284 | zql_col(i)=0. |
---|
| 285 | zqs_col(i)=0. |
---|
| 286 | zec_col(i) = 0. |
---|
| 287 | zh_dair_col(i) = 0. |
---|
| 288 | zh_qw_col(i) = 0. |
---|
| 289 | zh_ql_col(i) = 0. |
---|
| 290 | zh_qs_col(i) = 0. |
---|
| 291 | ENDDO |
---|
| 292 | C |
---|
| 293 | zcpvap=RCPV |
---|
| 294 | zcwat=RCW |
---|
| 295 | zcice=RCS |
---|
| 296 | C |
---|
| 297 | C Compute vertical sum for each atmospheric column |
---|
| 298 | C ================================================ |
---|
| 299 | DO k = 1, klev |
---|
| 300 | DO i = 1, klon |
---|
| 301 | C Watter mass |
---|
| 302 | zqw_col(i) = zqw_col(i) + q(i,k)*zairm(i,k) |
---|
| 303 | zql_col(i) = zql_col(i) + ql(i,k)*zairm(i,k) |
---|
| 304 | zqs_col(i) = zqs_col(i) + qs(i,k)*zairm(i,k) |
---|
| 305 | C Cinetic Energy |
---|
| 306 | zec_col(i) = zec_col(i) |
---|
| 307 | $ +0.5*(u(i,k)**2+v(i,k)**2)*zairm(i,k) |
---|
| 308 | C Air enthalpy |
---|
| 309 | zh_dair_col(i) = zh_dair_col(i) |
---|
| 310 | $ + RCPD*(1.-q(i,k)-ql(i,k)-qs(i,k))*zairm(i,k)*t(i,k) |
---|
| 311 | zh_qw_col(i) = zh_qw_col(i) |
---|
| 312 | $ + zcpvap*q(i,k)*zairm(i,k)*t(i,k) |
---|
| 313 | zh_ql_col(i) = zh_ql_col(i) |
---|
| 314 | $ + zcwat*ql(i,k)*zairm(i,k)*t(i,k) |
---|
| 315 | $ - RLVTT*ql(i,k)*zairm(i,k) |
---|
| 316 | zh_qs_col(i) = zh_qs_col(i) |
---|
| 317 | $ + zcice*qs(i,k)*zairm(i,k)*t(i,k) |
---|
| 318 | $ - RLSTT*qs(i,k)*zairm(i,k) |
---|
| 319 | |
---|
| 320 | END DO |
---|
| 321 | ENDDO |
---|
| 322 | C |
---|
| 323 | C Mean over the planete surface |
---|
| 324 | C ============================= |
---|
| 325 | qw_tot = 0. |
---|
| 326 | ql_tot = 0. |
---|
| 327 | qs_tot = 0. |
---|
| 328 | ec_tot = 0. |
---|
| 329 | h_vcol_tot = 0. |
---|
| 330 | h_dair_tot = 0. |
---|
| 331 | h_qw_tot = 0. |
---|
| 332 | h_ql_tot = 0. |
---|
| 333 | h_qs_tot = 0. |
---|
| 334 | airetot=0. |
---|
| 335 | C |
---|
| 336 | do i=1,klon |
---|
| 337 | qw_tot = qw_tot + zqw_col(i)*airephy(i) |
---|
| 338 | ql_tot = ql_tot + zql_col(i)*airephy(i) |
---|
| 339 | qs_tot = qs_tot + zqs_col(i)*airephy(i) |
---|
| 340 | ec_tot = ec_tot + zec_col(i)*airephy(i) |
---|
| 341 | h_dair_tot = h_dair_tot + zh_dair_col(i)*airephy(i) |
---|
| 342 | h_qw_tot = h_qw_tot + zh_qw_col(i)*airephy(i) |
---|
| 343 | h_ql_tot = h_ql_tot + zh_ql_col(i)*airephy(i) |
---|
| 344 | h_qs_tot = h_qs_tot + zh_qs_col(i)*airephy(i) |
---|
| 345 | airetot=airetot+airephy(i) |
---|
| 346 | END DO |
---|
| 347 | C |
---|
| 348 | qw_tot = qw_tot/airetot |
---|
| 349 | ql_tot = ql_tot/airetot |
---|
| 350 | qs_tot = qs_tot/airetot |
---|
| 351 | ec_tot = ec_tot/airetot |
---|
| 352 | h_dair_tot = h_dair_tot/airetot |
---|
| 353 | h_qw_tot = h_qw_tot/airetot |
---|
| 354 | h_ql_tot = h_ql_tot/airetot |
---|
| 355 | h_qs_tot = h_qs_tot/airetot |
---|
| 356 | C |
---|
| 357 | h_vcol_tot = h_dair_tot+h_qw_tot+h_ql_tot+h_qs_tot |
---|
| 358 | C |
---|
| 359 | C Compute the change of the atmospheric state compare to the one |
---|
| 360 | C stored in "idiag2", and convert it in flux. THis computation |
---|
| 361 | C is performed IF idiag2 /= 0 and IF it is not the first CALL |
---|
| 362 | c for "idiag" |
---|
| 363 | C =================================== |
---|
| 364 | C |
---|
| 365 | IF ( (idiag2.gt.0) .and. (pas(idiag2) .ne. 0) ) THEN |
---|
| 366 | d_h_vcol = (h_vcol_tot - h_vcol_pre(idiag2) )/dtime |
---|
| 367 | d_h_dair = (h_dair_tot- h_dair_pre(idiag2))/dtime |
---|
| 368 | d_h_qw = (h_qw_tot - h_qw_pre(idiag2) )/dtime |
---|
| 369 | d_h_ql = (h_ql_tot - h_ql_pre(idiag2) )/dtime |
---|
| 370 | d_h_qs = (h_qs_tot - h_qs_pre(idiag2) )/dtime |
---|
| 371 | d_qw = (qw_tot - qw_pre(idiag2) )/dtime |
---|
| 372 | d_ql = (ql_tot - ql_pre(idiag2) )/dtime |
---|
| 373 | d_qs = (qs_tot - qs_pre(idiag2) )/dtime |
---|
| 374 | d_ec = (ec_tot - ec_pre(idiag2) )/dtime |
---|
| 375 | d_qt = d_qw + d_ql + d_qs |
---|
| 376 | ELSE |
---|
| 377 | d_h_vcol = 0. |
---|
| 378 | d_h_dair = 0. |
---|
| 379 | d_h_qw = 0. |
---|
| 380 | d_h_ql = 0. |
---|
| 381 | d_h_qs = 0. |
---|
| 382 | d_qw = 0. |
---|
| 383 | d_ql = 0. |
---|
| 384 | d_qs = 0. |
---|
| 385 | d_ec = 0. |
---|
| 386 | d_qt = 0. |
---|
| 387 | ENDIF |
---|
| 388 | C |
---|
| 389 | IF (iprt.ge.2) THEN |
---|
| 390 | WRITE(6,9000) tit,pas(idiag),d_qt,d_qw,d_ql,d_qs |
---|
| 391 | 9000 format('Phys. Watter Mass Budget (kg/m2/s)',A15 |
---|
| 392 | $ ,1i6,10(1pE14.6)) |
---|
| 393 | WRITE(6,9001) tit,pas(idiag), d_h_vcol |
---|
| 394 | 9001 format('Phys. Enthalpy Budget (W/m2) ',A15,1i6,10(F8.2)) |
---|
| 395 | WRITE(6,9002) tit,pas(idiag), d_ec |
---|
| 396 | 9002 format('Phys. Cinetic Energy Budget (W/m2) ',A15,1i6,10(F8.2)) |
---|
| 397 | END IF |
---|
| 398 | C |
---|
| 399 | C Store the new atmospheric state in "idiag" |
---|
| 400 | C |
---|
| 401 | pas(idiag)=pas(idiag)+1 |
---|
| 402 | h_vcol_pre(idiag) = h_vcol_tot |
---|
| 403 | h_dair_pre(idiag) = h_dair_tot |
---|
| 404 | h_qw_pre(idiag) = h_qw_tot |
---|
| 405 | h_ql_pre(idiag) = h_ql_tot |
---|
| 406 | h_qs_pre(idiag) = h_qs_tot |
---|
| 407 | qw_pre(idiag) = qw_tot |
---|
| 408 | ql_pre(idiag) = ql_tot |
---|
| 409 | qs_pre(idiag) = qs_tot |
---|
| 410 | ec_pre (idiag) = ec_tot |
---|
| 411 | C |
---|
| 412 | RETURN |
---|
| 413 | END |
---|