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

Land-mask bug in sfcsub.F #719

Closed
GeorgeGayno-NOAA opened this issue Aug 20, 2021 · 3 comments · Fixed by NOAA-EMC/fv3atm#378
Closed

Land-mask bug in sfcsub.F #719

GeorgeGayno-NOAA opened this issue Aug 20, 2021 · 3 comments · Fixed by NOAA-EMC/fv3atm#378
Labels

Comments

@GeorgeGayno-NOAA
Copy link
Collaborator

Description

The UFS_UTILS global_cycle program is being updated to:

  • Link to the sfcsub.F from the ccpp repository.
  • Work with fractional grids.

During initial testing, a failure occurred in sfcsub.F routine newice. My test (C768, tile1 only) was not run with a fractional grid. Here is the error message:

FATAL ERROR: inconsistency in slifcs or slianl.
  at lat=-34.9 lon=305.0 slifcs= 1.0 slimsk= 0.0 tsffcs=280.0 set to tsfanl=280.0
abort:

The problem point has a mask of '1' (land) on input to sfcsub.F (sfcccycle). The error indicates the land mask is changing from '1' (land) to '0' (open water). That can't be correct.

I am using sfcsub.F at 8e670b0

After some investigation, and consultation with @SMoorthi-emc, he suspects there is a bug in this loop:

Updating the loop as follows eliminates the failure:

ufs-community/UFS_UTILS#549 (comment)

Additional Context

See UFS_UTILS issue ufs-community/UFS_UTILS#549 for more details.

@junwang-noaa
Copy link
Collaborator

@GeorgeGayno-NOAA would you please create a CCPP PR for this fix? We hope to get this fix committed soon.

@GeorgeGayno-NOAA
Copy link
Collaborator Author

@GeorgeGayno-NOAA would you please create a CCPP PR for this fix? We hope to get this fix committed soon.

Yes, I will create PR today.

@GeorgeGayno-NOAA
Copy link
Collaborator Author

@GeorgeGayno-NOAA would you please create a CCPP PR for this fix? We hope to get this fix committed soon.

@junwang-noaa See #721.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants