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

[Geos update] Yppm-Xppm #29

Open
wants to merge 3 commits into
base: GEOSFP_Update
Choose a base branch
from

Conversation

FlorianDeconinck
Copy link
Collaborator

Description

Update YPPM/XPPM to GEOS-FP requirements:

  • Allow computation for ord = -6
  • Add an edge fix to deal with imprint (per William Putman)
  • Change the checks to explicit white list of available ord and grid

Validity is checked with a temporary script bringing data and running the translate test.

** Difference between NOAA & NASA to reconcile **

The edge fix is unique to the GEOS code. It is meant to solve an imprint issue.

        # Fix edge issues
        with horizontal(region[i_start - 1, :], region[i_start, :]):
            smt5 = bl * br < 0.0
        with horizontal(region[i_end, :], region[i_end + 1, :]):
            smt5 = bl * br < 0.0

Tag @oelbert @lharris4

@FlorianDeconinck FlorianDeconinck changed the title Geos update/yppm xppm [Geos update] Yppm-Xppm Nov 14, 2024
Copy link

@lharris4 lharris4 left a comment

Choose a reason for hiding this comment

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

@FlorianDeconinck thank you for porting this. I think it would be better to introduce this as hord=6, which is what we did when @JosephMouallem added it to the Python FV3. I think absolute reproducibility of older cases is less important than improving upon this advection scheme.

@FlorianDeconinck
Copy link
Collaborator Author

ord=6 is covered by the code (and the test, though I'll double check that). The -6 is used within GEOS still so we need it for now.

Available in code with this PR is ord = 5, 6, -6, 8

@lharris4
Copy link

lharris4 commented Nov 15, 2024 via email

@FlorianDeconinck
Copy link
Collaborator Author

I see! Sorry I misunderstood, ans also I was a bit confused myself about it!

So the only difference I see in the code is that -6 vs 6 will trigger al to be max(0, al). Can you point to the updated code ?

@JosephMouallem
Copy link

Hi @FlorianDeconinck , we have implemented the changes in our internal branches for testing purposes. This updated code will be included in our upcoming public release, which is expected to be out shortly, thanks!

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.

3 participants