-
Notifications
You must be signed in to change notification settings - Fork 54
fix crash when using clm lake and GFS PBL/sfclay #148
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
Changes from 5 commits
8f54257
99997c6
2ceb88b
8941516
0fbcc9f
a920840
c61295f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -268,7 +268,7 @@ SUBROUTINE clm_lake_run( & | |
| ! Atmospheric model state inputs: | ||
| tg3, pgr, zlvl, gt0, prsi, phii, qvcurr, gu0, gv0, xlat_d, xlon_d, & | ||
| ch, cm, dlwsfci, dswsfci, oro_lakedepth, wind, rho0, tsfc, & | ||
| flag_iter, ISLTYP, rainncprv, raincprv, & | ||
| flag_iter, flag_lakefreeze, ISLTYP, rainncprv, raincprv, & | ||
|
|
||
| ! Feedback to atmosphere: | ||
| evap_wat, evap_ice, hflx_wat, hflx_ice, gflx_wat, gflx_ice, & | ||
|
|
@@ -325,6 +325,8 @@ SUBROUTINE clm_lake_run( & | |
| rainncprv, raincprv | ||
| REAL(KIND_PHYS), DIMENSION(:,:), INTENT(in) :: gu0, gv0, prsi, gt0, phii | ||
| LOGICAL, DIMENSION(:), INTENT(IN) :: flag_iter | ||
| LOGICAL, DIMENSION(:), INTENT(INOUT) :: flag_lakefreeze | ||
|
|
||
| INTEGER, DIMENSION(:), INTENT(IN) :: ISLTYP | ||
|
|
||
| ! | ||
|
|
@@ -754,6 +756,11 @@ SUBROUTINE clm_lake_run( & | |
| weasd(i) = weasdi(i) | ||
| snowd(i) = snodi(c) ! surface_snow_thickness_water_equivalent_over_ice | ||
|
|
||
|
|
||
| if (.not. icy(i)) then | ||
| flag_lakefreeze(i)=.true. | ||
|
Collaborator
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. @JiliDong-NOAA Jili, should it be if(icy(i)) then when the lake grid point is frozen?
Collaborator
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. @JiliDong-NOAA I see now, that this will be true only for new ice points. I agree with this change. Thank you. |
||
| end if | ||
|
|
||
| ! Ice points are icy: | ||
| icy(i)=.true. ! flag_nonzero_sea_ice_surface_fraction | ||
| ice_points = ice_points+1 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.