Skip to content

Commit

Permalink
Fix uninitialized values when kord_wz < -7
Browse files Browse the repository at this point in the history
This follows the suggestion of Lucas Harris in NOAA-GFDL#301 for the fix.
  • Loading branch information
spencerkclark committed Oct 23, 2023
1 parent 9af882c commit 8f9bece
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/fv_mapz.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2044,6 +2044,7 @@ subroutine cs_profile(qs, a4, delp, km, i1, i2, iv, kord)
grat = delp(i,km-1) / delp(i,km)
q(i,km) = ( 3.*(a4(1,i,k-1)+d4(i)*a4(1,i,k)) - grat*qs(i) - q(i,k-1) )/bet
q(i,km+1) = qs(i)
gam(i,km) = d4(i) / bet
enddo

else ! all others
Expand Down

0 comments on commit 8f9bece

Please sign in to comment.