Skip to content

Commit

Permalink
Adding check for model name; only use consistent snow ratio is we are…
Browse files Browse the repository at this point in the history
… running RRFS
  • Loading branch information
EricJames-NOAA committed Jan 24, 2024
1 parent 006917a commit 2e9b105
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions sorc/ncep_post.fd/SURFCE.f
Original file line number Diff line number Diff line change
Expand Up @@ -5163,15 +5163,18 @@ SUBROUTINE SURFCE
! Minimum 1h precipitation to even consider p-type specification
! (0.0001 mm in 1h, very light precipitation)
! ---------------------------------------------------------------
if (totprcp-graup_bucket(i,j)*1.e-3 > 0.0000001) &
if (totprcp-graup_bucket(i,j)*1.e-3 > 0.0000001) then
! snowratio = snow_bucket(i,j)*1.e-3/totprcp ! orig
!14aug15 - change from Stan and Trevor
! ---------------------------------------------------------------
! Snow-to-total ratio to be used below
! ---------------------------------------------------------------
! snowratio = snow_bucket(i,j)*1.e-3 / (totprcp-graup_bucket(i,j)*1.e-3)
snowratio = SR(i,j)
IF(MODELNAME == 'FV3R') THEN
snowratio = SR(i,j)
ELSE
snowratio = snow_bucket(i,j)*1.e-3 / (totprcp-graup_bucket(i,j)*1.e-3)
ENDIF
endif
!-- 2-m temperature
t2 = TSHLTR(I,J)*(PSHLTR(I,J)*1.E-5)**CAPA
! ---------------------------------------------------------------
Expand Down

0 comments on commit 2e9b105

Please sign in to comment.