Skip to content

Commit

Permalink
Fix bug for WACCM tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cacraigucar committed Feb 6, 2025
1 parent 6afb521 commit 2f2991d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/physics/cam/gw_convect.F90
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ subroutine gw_beres_src(ncol, band, desc, u, v, &
do i = 1, ncol
if (topi(i) == 0) then
! First spot where heating rate is positive.
if ((netdt(i,k) > 0.0_r8) .AND. (zm(i,k) <= 20000._r8)) topi(i) = k
if ((netdt(i,k) > 0.0_r8) .AND. (zm(i,k) <= 20000._r8)) topi(i) = k-1
end if
end do
! When all done, exit
Expand Down Expand Up @@ -286,7 +286,7 @@ subroutine gw_beres_src(ncol, band, desc, u, v, &

! Adjust for critical level filtering.
tau0(Umini(i):Umaxi(i)) = 0.0_r8

tau(i,:,topi(i)+1) = tau0

end if ! heating depth above min and not at the pole
Expand Down

0 comments on commit 2f2991d

Please sign in to comment.