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

Correct diagnostic coordinate interpolation scheme #411

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

adcroft
Copy link
Member

@adcroft adcroft commented Jul 19, 2023

The interpolation scheme for state-dependent diagnostic coordinates was incorrectly registering as the same parameter as for the main model ("INTERPOLATION_SCHEME"). This meant it was never possible to change the diagnostics vertical interpolation scheme from the default (which was not the same as the main model).

This fix registers the generated parameter name which was always computed but not used. A typical example of the generated parameter is "DIAG_COORD_INTERP_SCHEME_RHO2".

Affects these doc files:

  • ice_ocean_SIS2/Baltic_OM4_025/MOM_parameter_doc.all
  • ice_ocean_SIS2/Baltic_OM4_05/MOM_parameter_doc.all
  • ice_ocean_SIS2/OM4_025/MOM_parameter_doc.all
  • ice_ocean_SIS2/OM4_05/MOM_parameter_doc.all
  • ice_ocean_SIS2/OM_1deg/MOM_parameter_doc.all

The fix removes one of the many warnings we've been ignoring for a long time.

The interpolation scheme for state-dependent diagnostic coordinates
was incorrectly registering as the same parameter as the main model.
This meant it was never possible to change the interpolation scheme
from the default (which was not the same as the main model).

Fix registers the generated parameter name which was always computed
but not used. A typical example of the generated parameter is
"DIAG_COORD_INTERP_SCHEME_RHO2".
@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Merging #411 (c1530eb) into dev/gfdl (bb71c34) will decrease coverage by 0.01%.
The diff coverage is n/a.

❗ Current head c1530eb differs from pull request most recent head 1f87811. Consider uploading reports for the commit 1f87811 to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #411      +/-   ##
============================================
- Coverage     38.17%   38.17%   -0.01%     
============================================
  Files           269      269              
  Lines         76553    76553              
  Branches      14076    14076              
============================================
- Hits          29227    29226       -1     
- Misses        42076    42077       +1     
  Partials       5250     5250              
Impacted Files Coverage Δ
src/ALE/MOM_regridding.F90 28.92% <ø> (ø)

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link
Member

@Hallberg-NOAA Hallberg-NOAA left a comment

Choose a reason for hiding this comment

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

This code change does seem to be actually doing what was originally intended here, and it should do a nice job of eliminating several warnings.

@Hallberg-NOAA Hallberg-NOAA added the Parameter change Input parameter changes (addition, removal, or description) label Jul 23, 2023
@marshallward
Copy link
Member

@marshallward marshallward merged commit b9c7c86 into NOAA-GFDL:dev/gfdl Jul 24, 2023
10 checks passed
@adcroft adcroft deleted the fix-diag-coord-interp-scheme branch October 24, 2024 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Parameter change Input parameter changes (addition, removal, or description)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants