Skip to content

Commit

Permalink
Adding back a missing exclamation point in module_bl_mynn.F90 and add…
Browse files Browse the repository at this point in the history
…ing a limit to protect against the ridiculously large z0s when using thin first model levels in module_sf_mynn.F90
  • Loading branch information
joeolson42 committed Oct 19, 2023
1 parent 14c5887 commit ffb0912
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion physics/module_bl_mynn.F90
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
!>\file module_bl_mynn.F90
! This file contains the entity of MYNN-EDMF PBL scheme.
!! This file contains the entity of MYNN-EDMF PBL scheme.
! **********************************************************************
! * An improved Mellor-Yamada turbulence closure model *
! * *
Expand Down
2 changes: 2 additions & 0 deletions physics/module_sf_mynn.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1380,6 +1380,8 @@ SUBROUTINE SFCLAY1D_mynn(flag_iter, &
else
ZNTstoch_lnd(I) = ZNT_lnd(I)
endif
!add limit to prevent ridiculous values of z0 (more than dz/15)
ZNTstoch_lnd(I) = min(ZNTstoch_lnd(I), dz8w1d(i)*0.0666)

!--------------------------------------
! LAND
Expand Down

0 comments on commit ffb0912

Please sign in to comment.