-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync RUC LSM code with the version used in RAP/HRRR #344
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
fa3c1d3
1. Use fraction of frozen precipitation SR directly from Thompson MP.
tanyasmirnova 27eb089
Merge branch 'gsd/develop' of https://github.com/NCAR/ccpp-physics in…
tanyasmirnova db9742d
Sync the RUC LSM code with the version in RAPv5/HRRRv4.
tanyasmirnova File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -560,13 +560,15 @@ subroutine lsm_ruc_run & ! inputs | |
!prcp(i,j) = rhoh2o * tprcp(i) ! tprcp in [m] - convective plus explicit | ||
!raincv(i,j) = rhoh2o * rainc(i) ! total time-step convective precip | ||
!rainncv(i,j) = rhoh2o * max(rain(i)-rainc(i),0.0) ! total time-step explicit precip | ||
!graupelncv(i,j) = rhoh2o * graupel(i) | ||
!snowncv(i,j) = rhoh2o * snow(i) | ||
prcp(i,j) = rhoh2o * (rainc(i)+rainnc(i)) ! tprcp in [m] - convective plus explicit | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These three lines are just documentation changes. Ok. |
||
raincv(i,j) = rhoh2o * rainc(i) ! total time-step convective precip | ||
rainncv(i,j) = rhoh2o * rainnc(i) ! total time-step explicit precip | ||
prcp(i,j) = rhoh2o * (rainc(i)+rainnc(i)) ! [mm] - convective plus explicit | ||
raincv(i,j) = rhoh2o * rainc(i) ! [mm] - total time-step convective precip | ||
rainncv(i,j) = rhoh2o * rainnc(i) ! [mm] - total time-step explicit precip | ||
graupelncv(i,j) = rhoh2o * graupel(i) | ||
snowncv(i,j) = rhoh2o * snow(i) | ||
!if(prcp(i,j) > 0. .and. i==21) then | ||
!print *,'prcp(i,j),rainncv(i,j),graupelncv(i,j),snowncv(i,j),ffrozp(i,j)',i,j, & | ||
! prcp(i,j),rainncv(i,j),graupelncv(i,j),snowncv(i,j),ffrozp(i,j) | ||
!endif | ||
! ice not used | ||
! precipfr(i,j) = rainncv(i,j) * ffrozp(i,j) | ||
|
||
|
@@ -694,7 +696,7 @@ subroutine lsm_ruc_run & ! inputs | |
znt(i,j) = zorl(i)/100. | ||
|
||
if(debug_print) then | ||
!if(me==0 .and. i==ipr) then | ||
if(me==0 .and. i==ipr) then | ||
write (0,*)'before RUC smsoil = ',smsoil(i,:,j), i,j | ||
write (0,*)'stsoil = ',stsoil(i,:,j), i,j | ||
write (0,*)'soilt = ',soilt(i,j), i,j | ||
|
@@ -788,7 +790,7 @@ subroutine lsm_ruc_run & ! inputs | |
write (0,*)'shdmin1d(i,j) =',i,j,shdmin1d(i,j) | ||
write (0,*)'shdmax1d(i,j) =',i,j,shdmax1d(i,j) | ||
write (0,*)'rdlai2d =',rdlai2d | ||
!endif | ||
endif | ||
endif | ||
|
||
!> - Call RUC LSM lsmruc(). | ||
|
@@ -828,6 +830,7 @@ subroutine lsm_ruc_run & ! inputs | |
& its,ite, jts,jte, kts,kte ) | ||
|
||
if(debug_print) then | ||
!if(me==0 .and. i==ipr) then | ||
write (0,*)'after sneqv(i,j) =',i,j,sneqv(i,j) | ||
write (0,*)'after snowh(i,j) =',i,j,snowh(i,j) | ||
write (0,*)'after sncovr(i,j) =',i,j,sncovr(i,j) | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is soilt1 set beforehand? It is used in line 437.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dom,
soilt1 is not defined beforehand in the cold start, but defined in the warm start. Therefore,
I commented this line out not to overwrite the value from the warm start. And the code below the commented line is checking the value of SOILT1 and initializes it if it is not defined yet:
! soilt1(i,j)=soilt(i,j)
! if(snow(i,j).le.32.) soilt1(i,j)=tso(i,1,j)
!> - Initializing inside snow temp if it is not defined
IF((soilt1(i,j) .LT. 170.) .or. (soilt1(i,j) .GT.400.)) THEN
IF(snow(i,j).gt.32.) THEN
soilt1(i,j)=0.5*(soilt(i,j)+tso(i,1,j))
IF (debug_print ) THEN
print *, &
'Temperature inside snow is initialized in RUCLSM ', soilt1(i,j),i,j
ENDIF
ELSE
soilt1(i,j) = tso(i,1,j)
ENDIF
ENDIF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the clarification. I will test this change together with a reduction in the timestep for the GSD physics (or better to say, anything that involves the Thompson MP scheme) in the regression tests and approve/merge it if the tests pass in REPRO and DEBUG mode.