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 10 do-loop index cases #680

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Corrected the case of the do-loop index variable in 10 places in 6 files, initialized two whole diagnostic arrays to 0 instead of having shared loops initializing u- and v-point arrays, and shortened two loops initializing pressures to the size that is actually used in the corresponding equation of state calls. With these changes, there are no i- or j- loops with extents that are inconsistent with the stagger-based index case convention used throughout the MOM6 code. All answers are bitwise identical in all cases.

Copy link

codecov bot commented Jul 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 40.90%. Comparing base (7cea6dd) to head (419e5f9).

Additional details and impacted files
@@             Coverage Diff              @@
##           dev/gfdl     #680      +/-   ##
============================================
+ Coverage     37.07%   40.90%   +3.82%     
============================================
  Files           271       42     -229     
  Lines         81988     5286   -76702     
  Branches      15292     1013   -14279     
============================================
- Hits          30401     2162   -28239     
+ Misses        45927     2939   -42988     
+ Partials       5660      185    -5475     

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

  Corrected the case of the do-loop index variable in 10 places in 6 files,
initialized two whole diagnostic arrays to 0 instead of having shared loops
initializing u- and v-point arrays, and shortened two loops initializing
pressures to the size that is actually used in the corresponding equation of
state calls.  With these changes, there are no i- or j- loops with extents that
are inconsistent with the stagger-based index case convention used throughout
the MOM6 code.  All answers are bitwise identical in all cases.
@Hallberg-NOAA Hallberg-NOAA force-pushed the loop_index_case_cleanup branch from 419e5f9 to 05a65ed Compare July 13, 2024 09:56
@Hallberg-NOAA
Copy link
Member Author

This PR passed pipeline testing at https://gitlab.gfdl.noaa.gov/ogrp/mom6ci/MOM6/-/pipelines/24083.

@Hallberg-NOAA Hallberg-NOAA merged commit b4c91e3 into NOAA-GFDL:dev/gfdl Jul 13, 2024
10 checks passed
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.

2 participants