Skip to content

Commit

Permalink
Fix the undefined dimension issue for maxmf in tests with GNU debug
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaqiongZhou-NOAA committed Oct 24, 2023
1 parent 91415d4 commit b314eab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion physics/samfdeepcnv.f
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@ subroutine samfdeepcnv_run (im,km,first_time_step,restart, &
!
do i=1,im
cnvflg(i) = .true.
if(do_mynnedmf.and.(maxMF(i).gt.0.))cnvflg(i)=.false.
if(do_mynnedmf) then
if(maxMF(i).gt.0.)cnvflg(i)=.false.
endif
sfcpbl(i) = sfclfac * hpbl(i)
rn(i)=0.
mbdt(i)=10.
Expand Down

0 comments on commit b314eab

Please sign in to comment.