Skip to content

*Fix PE-count dependency with some kinds of OBCs#901

Merged
Hallberg-NOAA merged 1 commit into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:fix_OBC_PE_count_dependency
May 19, 2025
Merged

*Fix PE-count dependency with some kinds of OBCs#901
Hallberg-NOAA merged 1 commit into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:fix_OBC_PE_count_dependency

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

@Hallberg-NOAA Hallberg-NOAA commented May 16, 2025

Fixed a bug that was causing some open boundary condition fields (e.g., those related to the tides) not to be read in from files before they are used unless there are some PEs that do NOT include any input date based OBC points. This bug causes certain configurations with not to reproduce across PE count. Most high-PE count jobs (those with at least 3 PEs in each direction) previously were correct, but single PE jobs or jobs with a prime number or 2 times a prime number of PEs were never correct for these cases. Specifically, this commit removes the some_need_no_IO_for_data element from the ocean_OBC_type, and it always calls update_OBC_segment_data() during initialization when any OBCs are being used. It also replaces three calls to allocate_rotated_array() with calls to the new internal subroutine allocate_rotated_seg_data() to avoid a bug where the size of rotated data segments is right but the index range is wrong. This commit will change low-PE count answers for some cases with certain types of open boundary conditions.

@Hallberg-NOAA Hallberg-NOAA added bug Something isn't working answer-changing A change in results (actual or potential) labels May 16, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented May 16, 2025

Codecov Report

Attention: Patch coverage is 60.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 37.55%. Comparing base (c458e2b) to head (c783293).

Files with missing lines Patch % Lines
src/core/MOM.F90 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           dev/gfdl     #901   +/-   ##
=========================================
  Coverage     37.54%   37.55%           
=========================================
  Files           305      305           
  Lines         91434    91429    -5     
  Branches      17417    17415    -2     
=========================================
  Hits          34333    34333           
+ Misses        50676    50673    -3     
+ Partials       6425     6423    -2     

☔ 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.

@theresa-cordero
Copy link
Copy Markdown

@yichengt900

  Fixed a bug that was causing some open boundary condition fields (e.g., those
related to the tides) not to be read in from files before they are used unless
there are some PEs that do NOT include any input date based OBC points.  This
bug causes certain configurations with not to reproduce across PE count.  Most
high-PE count jobs (those with at least 3 PEs in each direction) previously were
correct, but single PE jobs or jobs with a prime number or 2 times a prime
number of PEs were never correct for these cases.  Specifically, this commit
removes the some_need_no_IO_for_data element from the ocean_OBC_type, and it
always calls update_OBC_segment_data() during initialization when any OBCs are
being used.  It also replaces three calls to allocate_rotated_array() with calls
to the new internal subroutine allocate_rotated_seg_data() to avoid a bug where
the size of rotated data segments is right but the index range is wrong.  This
commit will change low-PE count answers for some cases with certain types of
open boundary conditions.
@Hallberg-NOAA Hallberg-NOAA force-pushed the fix_OBC_PE_count_dependency branch from b80dce7 to d361e99 Compare May 19, 2025 20:24
@Hallberg-NOAA
Copy link
Copy Markdown
Member Author

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

@Hallberg-NOAA Hallberg-NOAA merged commit ff71e36 into NOAA-GFDL:dev/gfdl May 19, 2025
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

answer-changing A change in results (actual or potential) bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants