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

(*)Fix apply_topography_edits_from_file indexing #566

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Corrected bugs in the horizontal indexing in apply_topography_edits_from_file() that led to differing answers depending on the value of GLOBAL_INDEXING. This change gives identical results when GLOBAL_INDEXING is used, as can be seen by noting that G%idg_offset = G%isd_global + G%isd and that without global indexing G%isd = 1, but with global indexing the new expressions give the same answers as without them. Because global indexing is not typically used, answers are not changed for any cases in the MOM6-examples test suite.

  Corrected bugs in the horizontal indexing in apply_topography_edits_from_file
that led to differing answers depending on the value of GLOBAL_INDEXING.  This
change gives identical results when GLOBAL_INDEXING is used, as can be seen by noting that G%idg_offset = G%isd_global + G%isd and that without global
indexing G%isd = 1, but with global indexing the new expressions give the same
answers as without them.  Because global indexing is not typically used,
answers are not changed for any cases in the MOM6-examples test suite.
@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label Feb 8, 2024
Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.17%. Comparing base (0ff03ae) to head (c581115).

Additional details and impacted files
@@            Coverage Diff            @@
##           dev/gfdl     #566   +/-   ##
=========================================
  Coverage     37.16%   37.17%           
=========================================
  Files           271      271           
  Lines         80660    80660           
  Branches      15048    15048           
=========================================
+ Hits          29981    29982    +1     
  Misses        45105    45105           
+ Partials       5574     5573    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marshallward
Copy link
Member

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/22558 ✔️

@marshallward marshallward merged commit 0bd4c16 into NOAA-GFDL:dev/gfdl Mar 11, 2024
12 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the topo_edits_indexing_fix branch May 10, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants