Skip to content
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

Update gsl/develop from main 2021/09/21 #106

Conversation

climbfuji
Copy link

@climbfuji climbfuji commented Sep 21, 2021

Description

Update gsl/develop from main as of 2021/09/21. Changes in this PR:

  • Update of cmake build system files
  • Metadata bugfixes
  • Bugfix in physics/sfcsub.F for coupled runs w/ fractional landmask

Testing

See NOAA-GSL/ufs-weather-model#102

Associated PRs

NOAA-GSL/ccpp-framework#18
#106
NOAA-GSL/fv3atm#108
NOAA-GSL/ufs-weather-model#102

@DomHeinzeller
Copy link

@tanyasmirnova @joeolson42 for your information. No changes that you need to be concerned with, as far as I know.

@@ -2019,12 +2019,14 @@ subroutine sfccycle(lugb,len,lsoil,sig1t,deltsfc &
! *,' tsffcs=',tsffcs(iprnt),' slianl=',slianl(iprnt)

do i=1,len
if (nint(slmskl(i)) /= 1) then
if (sicanl(i) >= min_ice(i)) then
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think that with a fractional grid it is better not to use slmsk.

Copy link
Author

Choose a reason for hiding this comment

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

This is testing for slmskl, not slmsk - do you think this is also a problem with fractional grids?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@DomHeinzeller Dom, slmskl is computed in gcycle.F90, and this computation looks questionable to me. But I assume that people who wrote the code tested it with frac_grid=.true. Therefore, I approved this PR.

Copy link
Author

Choose a reason for hiding this comment

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

@SMoorthi-emc wrote the code and I am highly confident that he tested the logic with fractional grid turned on. Moorthi, can you confirm that the above code change in sfcsub.F works with fractional grid as intended? Thanks!

@SMoorthi-emc
Copy link

SMoorthi-emc commented Sep 22, 2021 via email

@climbfuji
Copy link
Author

Dom, This code is specifically important for fractional grid. The way "slmsk" is interpreted in the code is that it is "0" for points with all water, it is "1" if there is any land and it is "2" if there is ice and no land. Unfortunately, that is what it is right now unless someone is willing to rewrite most of the code. "slmskl" in gcycle is "1" if there is any "land" and "slmskw" is "0" if there is any water. However, if there is land/water/ice in a grid, then "slmsk=1" and not "2". Please note that in this case "slmskl=1" and "slmskw=0". I hope this helps. Moorthi

Thanks a lot Moorthi, it does. The subtle difference how slmsk is interpreted is important to know!

@DomHeinzeller DomHeinzeller merged commit 097597a into NOAA-GSL:gsl/develop Sep 22, 2021
@climbfuji climbfuji deleted the update_gsl_develop_from_main_20210921 branch June 27, 2022 03:29
zhanglikate pushed a commit to zhanglikate/ccpp-physics that referenced this pull request Mar 1, 2024
Fixes to allow FV3_HRRR_c3 to run with gnu debug plus PR NOAA-GSL#113, NOAA-GSL#106, and NOAA-GSL#103
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.

6 participants