Skip to content

Commit

Permalink
Merge pull request NOAA-GSL#39 from barlage/NoahMP_p8c_mynn
Browse files Browse the repository at this point in the history
add snow density limits for each layer
  • Loading branch information
HelinWei-NOAA authored May 23, 2022
2 parents 0a96734 + 3407bf1 commit d33124c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions physics/module_sf_noahmp_glacier.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2823,6 +2823,7 @@ subroutine compact_glacier (nsnow ,nsoil ,dt ,stc ,snice , & !in
! the change in dz due to compaction

dzsnso(j) = dzsnso(j)*(1.+pdzdtc)
dzsnso(j) = min(max(dzsnso(j),(snliq(j)+snice(j))/500.0),(snliq(j)+snice(j))/50.0) ! limit adjustment to a reasonable density
end if

! pressure of overlying snow
Expand Down
4 changes: 2 additions & 2 deletions physics/module_sf_noahmplsm.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7619,7 +7619,7 @@ subroutine compact (parameters,nsnow ,nsoil ,dt ,stc ,snice , & !in
! the change in dz due to compaction

dzsnso(j) = dzsnso(j)*(1.+pdzdtc)
dzsnso(j) = max(dzsnso(j),snice(j)/denice + snliq(j)/denh2o)
dzsnso(j) = min(max(dzsnso(j),(snliq(j)+snice(j))/500.0),(snliq(j)+snice(j))/50.0) ! limit adjustment to a reasonable density
end if

! pressure of overlying snow
Expand Down Expand Up @@ -7773,7 +7773,7 @@ subroutine snowh2o (parameters,nsnow ,nsoil ,dt ,qsnfro ,qsnsub , & !in
end do

do j = isnow+1, 0
dzsnso(j) = max(dzsnso(j),snliq(j)/denh2o + snice(j)/denice)
dzsnso(j) = min(max(dzsnso(j),(snliq(j)+snice(j))/500.0),(snliq(j)+snice(j))/50.0) ! limit adjustment to a reasonable density
end do

! liquid water from snow bottom to soil
Expand Down

0 comments on commit d33124c

Please sign in to comment.