Skip to content

Commit

Permalink
set nsoil to max and remove factorsm
Browse files Browse the repository at this point in the history
  • Loading branch information
HelinWei-NOAA committed Aug 25, 2023
1 parent 6bf9907 commit 1336b80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion physics/module_sf_noahmplsm.F90
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ module module_sf_noahmplsm
real (kind=kind_phys), parameter :: denice = 917. !< density of ice (kg/m3)

integer, private, parameter :: mband = 2
integer, private, parameter :: nsoil = 9
integer, private, parameter :: nsoil = 20
integer, private, parameter :: nstage = 8

type noahmp_parameters ! define a noahmp parameters type
Expand Down Expand Up @@ -747,6 +747,7 @@ subroutine noahmp_sflx (parameters, &
canhs = 0.

! --------------------------------------------------------------------------------------------------

! re-process atmospheric forcing

call atm (parameters,ep_2, epsm1, sfcprs ,sfctmp ,q2 , &
Expand Down
16 changes: 8 additions & 8 deletions physics/noahmpdrv.F90
Original file line number Diff line number Diff line change
Expand Up @@ -2015,14 +2015,14 @@ subroutine noahmpsoilinit (lsm_cold_start, im, lsoil_lsm, lsoil, & ! in
soilm(i,k,1) = max(0.02,soilm(i,k,1)*smtotn(i,1)/(0.9*smtotr(i,1)))
enddo

if( soilm(i,2,1) > soilm(i,1,1) .and. soilm(i,3,1) > soilm(i,2,1)) then
! typical for daytime, no recent precip
factorsm(1) = 0.75
factorsm(2) = 0.8
factorsm(3) = 0.85
factorsm(4) = 0.9
factorsm(5) = 0.95
endif
! if( soilm(i,2,1) > soilm(i,1,1) .and. soilm(i,3,1) > soilm(i,2,1)) then
! ! typical for daytime, no recent precip
! factorsm(1) = 0.75
! factorsm(2) = 0.8
! factorsm(3) = 0.85
! factorsm(4) = 0.9
! factorsm(5) = 0.95
! endif

do k=1,lsoil_lsm
soilm(i,k,1) = factorsm(k) * soilm(i,k,1)
Expand Down

0 comments on commit 1336b80

Please sign in to comment.