Changeset 4703 for palm/trunk/SOURCE/flow_statistics.f90
- Timestamp:
- Sep 28, 2020 9:21:45 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/flow_statistics.f90
r4672 r4703 24 24 ! ----------------- 25 25 ! $Id$ 26 ! Revise averaging of land-surface quantities 27 ! 28 ! 4672 2020-09-09 21:27:32Z pavelkrc 26 29 ! OpenACC bugfix 27 30 ! … … 1414 1417 j = surf_lsm_h(0)%j(m) 1415 1418 1416 IF ( i >= nxl .AND. i <= nxr .AND. j >= nys .AND. j <= nyn ) THEN 1417 sums_l(nzb,93,tn) = sums_l(nzb,93,tn) + surf_lsm_h(0)%ghf(m) * rmask(j,i,sr) 1418 sums_l(nzb,94,tn) = sums_l(nzb,94,tn) + surf_lsm_h(0)%qsws_liq(m) * rmask(j,i,sr) 1419 sums_l(nzb,95,tn) = sums_l(nzb,95,tn) + surf_lsm_h(0)%qsws_soil(m) * rmask(j,i,sr) 1420 sums_l(nzb,96,tn) = sums_l(nzb,96,tn) + surf_lsm_h(0)%qsws_veg(m) * rmask(j,i,sr) 1421 sums_l(nzb,97,tn) = sums_l(nzb,97,tn) + surf_lsm_h(0)%r_a(m) * rmask(j,i,sr) 1422 sums_l(nzb,98,tn) = sums_l(nzb,98,tn) + surf_lsm_h(0)%r_s(m) * rmask(j,i,sr) 1423 ENDIF 1419 sums_l(nzb,93,tn) = sums_l(nzb,93,tn) + surf_lsm_h(0)%ghf(m) * rmask(j,i,sr) 1420 sums_l(nzb,94,tn) = sums_l(nzb,94,tn) + surf_lsm_h(0)%qsws_liq(m) * rmask(j,i,sr) 1421 sums_l(nzb,95,tn) = sums_l(nzb,95,tn) + surf_lsm_h(0)%qsws_soil(m) * rmask(j,i,sr) 1422 sums_l(nzb,96,tn) = sums_l(nzb,96,tn) + surf_lsm_h(0)%qsws_veg(m) * rmask(j,i,sr) 1423 sums_l(nzb,97,tn) = sums_l(nzb,97,tn) + surf_lsm_h(0)%r_a(m) * rmask(j,i,sr) 1424 sums_l(nzb,98,tn) = sums_l(nzb,98,tn) + surf_lsm_h(0)%r_s(m) * rmask(j,i,sr) 1424 1425 ENDDO 1425 1426 !$OMP END PARALLEL … … 1433 1434 i = surf_lsm_h(0)%i(m) 1434 1435 j = surf_lsm_h(0)%j(m) 1435 1436 IF ( i >= nxl .AND. i <= nxr .AND. j >= nys .AND. j <= nyn ) THEN 1437 1438 DO k = nzb_soil, nzt_soil 1439 sums_l(k,89,tn) = sums_l(k,89,tn) + t_soil_h(0)%var_2d(k,m) * rmask(j,i,sr) 1440 sums_l(k,91,tn) = sums_l(k,91,tn) + m_soil_h(0)%var_2d(k,m) * rmask(j,i,sr) 1441 ENDDO 1442 ENDIF 1436 DO k = nzb_soil, nzt_soil 1437 sums_l(k,89,tn) = sums_l(k,89,tn) + t_soil_h(0)%var_2d(k,m) * rmask(j,i,sr) 1438 sums_l(k,91,tn) = sums_l(k,91,tn) + m_soil_h(0)%var_2d(k,m) * rmask(j,i,sr) 1439 ENDDO 1443 1440 ENDDO 1444 1441 !$OMP END PARALLEL … … 1806 1803 sums(k,55:63) = sums(k,55:63) / ngp_2dh(sr) 1807 1804 sums(k,81:88) = sums(k,81:88) / ngp_2dh(sr) 1808 sums(k,89:112) = sums(k,89:112) / ngp_2dh(sr) 1805 1806 IF ( land_surface .AND. surf_lsm_h(0)%ns_tot > 0 ) THEN 1807 sums(k,89:98) = sums(k,89:98) / surf_lsm_h(0)%ns_tot 1808 ENDIF 1809 1810 sums(k,99:112) = sums(k,99:112) / ngp_2dh(sr) 1809 1811 sums(k,114) = sums(k,114) / ngp_2dh(sr) 1810 1812 sums(k,117) = sums(k,117) / ngp_2dh(sr)
Note: See TracChangeset
for help on using the changeset viewer.