Skip to content

Commit

Permalink
Update glm_zones.F90
Browse files Browse the repository at this point in the history
Fix copy_to_zone to divide by layer number (num layers above zone)
  • Loading branch information
matthipsey authored Feb 8, 2024
1 parent 78f84ff commit b6aec13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/glm_zones.F90
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ SUBROUTINE copy_to_zone(x_cc, x_diag, x_diag_hz, wlev)

DO zon=1,a_zones
z_cc(zon,1:nvars) = z_cc(zon,1:nvars)/zcount(zon)
z_diag(zon,:) = z_diag(zon,:)/zcount(zon)
z_diag_hz(zon,:) = z_diag_hz(zon,:)/zcount(zon)
ENDDO

WHERE (zcount /= 0)
Expand Down

0 comments on commit b6aec13

Please sign in to comment.