Skip to content

Commit

Permalink
bug fixes to get B4B
Browse files Browse the repository at this point in the history
  • Loading branch information
chloewhicker committed Apr 11, 2024
1 parent db67eb0 commit 0bbb3b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/elm/src/biogeophys/SnowSnicarMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ module SnowSnicarMod
integer, parameter :: snw_rds_max_tbl = 1500 ! maximum effective radius defined in Mie lookup table [microns]
integer, parameter :: snw_rds_min_tbl = 30 ! minimium effective radius defined in Mie lookup table [microns]
real(r8), parameter :: snw_rds_max = 1500._r8 ! maximum allowed snow effective radius [microns]
real(r8), parameter :: snw_rds_refrz = 1500._r8 ! effective radius of re-frozen snow [microns]
real(r8) :: snw_rds_refrz = 1000._r8 ! effective radius of re-frozen snow [microns]
!$acc declare copyin(snw_rds_max_tbl)
!$acc declare copyin(snw_rds_min_tbl)
!$acc declare copyin(snw_rds_max )
Expand Down
4 changes: 2 additions & 2 deletions components/elm/src/main/elm_varcon.F90
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ module elm_varcon
real(r8) :: ac_wasteheat_factor = 0.0_r8 !wasteheat factor for urban air conditioning (-)
real(r8) :: wasteheat_limit = 100._r8 !limit on wasteheat (W/m2)

real(r8) :: h2osno_max = 30000._r8 ! max allowed snow thickness (mm H2O)
real(r8) :: h2osno_max = 1000._r8 ! max allowed snow thickness (mm H2O)
real(r8), parameter :: lapse_glcmec = 0.006_r8 ! surface temperature lapse rate (deg m-1)
! Pritchard et al. (GRL, 35, 2008) use 0.006
real(r8), parameter :: glcmec_rain_snow_threshold = SHR_CONST_TKFRZ ! temperature dividing rain & snow in downscaling (K)
Expand Down Expand Up @@ -249,7 +249,7 @@ subroutine elm_varcon_init()
allocate( dzsoifl(1:nlevsoifl ))

if (use_extrasnowlayers) then
h2osno_max = 10000._r8
h2osno_max = 30000._r8
end if

end subroutine elm_varcon_init
Expand Down

0 comments on commit 0bbb3b9

Please sign in to comment.