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 a bug that left OBC%debug uninitialized #519

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

Hallberg-NOAA
Copy link
Member

This commit fixes a bug to ensure that OBC%debug is always being set when OBCs are in use. After a recent commit, the value of OBC%debug was not being set and was being left in an indeterminate whenever DEBUG_OBC=False or DEBUG=False and DEBUG_OBC was unspecified. This would lead to the model writing out a number of checksums in some cases with open boundary conditions enabled, depending on what value was inherited by the uninitialized OBC%debug. Although this does not
change any answers, it will avoid a problem that will write out a large volume of undesired output and greatly slow down configurations with open boundary conditions.

@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label Nov 8, 2023
Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #519 (849548c) into dev/gfdl (753cab3) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

❗ Current head 849548c differs from pull request most recent head 331a8c7. Consider uploading reports for the commit 331a8c7 to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #519      +/-   ##
============================================
- Coverage     37.46%   37.45%   -0.01%     
============================================
  Files           270      270              
  Lines         79765    79763       -2     
  Branches      14831    14830       -1     
============================================
- Hits          29881    29879       -2     
  Misses        44349    44349              
  Partials       5535     5535              
Files Coverage Δ
src/core/MOM_open_boundary.F90 24.20% <100.00%> (-0.02%) ⬇️

... and 1 file with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

  This commit fixes a bug to ensure that OBC%debug is always being set when OBCs
are in use.  After a recent commit, the value of OBC%debug was not being set and
was being left in an indeterminate whenever DEBUG_OBC=False or DEBUG=False and
DEBUG_OBC was unspecified.  This would lead to the model writing out a number of
checksums in some cases with open boundary conditions enabled, depending on what
value was inherited by the uninitialized OBC%debug.   Although this does not
change any answers, it will avoid a problem that will write out a large volume
of undesired output and greatly slow down configurations with open boundary
conditions.
@marshallward
Copy link
Member

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

@marshallward marshallward merged commit cce4b3d into NOAA-GFDL:dev/gfdl Nov 10, 2023
@Hallberg-NOAA Hallberg-NOAA deleted the set_OBC_debug branch May 10, 2024 21:53
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.

3 participants