Skip to content

fix crash when using clm lake and GFS PBL/sfclay#148

Merged
dustinswales merged 7 commits into
ufs-community:ufs/devfrom
JiliDong-NOAA:clm_lake_ice_fix
Dec 21, 2023
Merged

fix crash when using clm lake and GFS PBL/sfclay#148
dustinswales merged 7 commits into
ufs-community:ufs/devfrom
JiliDong-NOAA:clm_lake_ice_fix

Conversation

@JiliDong-NOAA
Copy link
Copy Markdown

This PR is to fix the RRFS ensemble member crash when combining clm lake and GFS PBL/sfclay:

#141

A new flag is created to track new freezing lake ice and let sfc_diff to calculate stability variables over the new icy grids for GFS PBL in the second surface loop, which otherwise will remain as missing values.

Copy link
Copy Markdown
Collaborator

@dustinswales dustinswales left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look fine to me, just a small comment on the formatting

Comment thread physics/clm_lake.f90 Outdated
Comment thread physics/clm_lake.f90


if (.not. icy(i)) then
flag_lakefreeze(i)=.true.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The 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?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The 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.

@dustinswales dustinswales merged commit 111d273 into ufs-community:ufs/dev Dec 21, 2023
dustinswales added a commit that referenced this pull request Dec 21, 2023
clm lake fix: pressure is not density + #142 and #148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants