Skip to content

+Correct halo update sizes and reduce halo updates#969

Merged
Hallberg-NOAA merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:rightsized_halo_updates
Sep 18, 2025
Merged

+Correct halo update sizes and reduce halo updates#969
Hallberg-NOAA merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:rightsized_halo_updates

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

Added the new argument dyn_h_stencil to initialize_dyn_split_RK2() and the other 3 dynamic core initialization routines to return the size of the stencil for thicknesses as used by the dynamic core, depending on the options that are being used for the Coriolis and continuity schemes, and then used this in a set of halo updates in step_MOM_dynamics(). With this change some additional halo updates that have recently been added inside of step_MOM_dyn_split_RK2() and the other 3 dynamic core time stepping routines could be (and were) eliminated. All answers are bitwise identical, but there is a new argument to 4 public interfaces.

  Added the new argument dyn_h_stencil to initialize_dyn_split_RK2 and the
other 3 dynamic core initialization routines to return the size of the stencil
for thicknesses as used by the dynamic core, depending on the options that are
being used for the Coriolis and continuity schemes, and then used this in a set
of halo updates in step_MOM_dynamics.  With this change some additional halo
updates that have recently been added inside of step_MOM_dyn_split_RK2 and the
other 3 dynamic core time stepping routines could be eliminated.  All answers
are bitwise identical, but there is a new argument to 4 public interfaces.
@Hallberg-NOAA Hallberg-NOAA added the refactor Code cleanup with no changes in functionality or results label Sep 8, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 12, 2025

Codecov Report

❌ Patch coverage is 69.56522% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 37.42%. Comparing base (83a1048) to head (a149554).
⚠️ Report is 1 commits behind head on dev/gfdl.

Files with missing lines Patch % Lines
src/core/MOM.F90 54.54% 5 Missing ⚠️
src/core/MOM_dynamics_split_RK2.F90 66.66% 1 Missing ⚠️
src/core/MOM_dynamics_split_RK2b.F90 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           dev/gfdl     #969      +/-   ##
============================================
+ Coverage     37.41%   37.42%   +0.01%     
============================================
  Files           304      304              
  Lines         93061    93043      -18     
  Branches      17860    17852       -8     
============================================
+ Hits          34816    34819       +3     
+ Misses        51678    51665      -13     
+ Partials       6567     6559       -8     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Hallberg-NOAA
Copy link
Copy Markdown
Member Author

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

@Hallberg-NOAA Hallberg-NOAA merged commit 6ac9c74 into NOAA-GFDL:dev/gfdl Sep 18, 2025
54 checks passed
@Hallberg-NOAA Hallberg-NOAA deleted the rightsized_halo_updates branch March 20, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code cleanup with no changes in functionality or results

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants