Skip to content

(*)Fix occasional bug with PFv_visc_rem diagnostic#128

Merged
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:PFv_visc_rem_bugfix
May 28, 2022
Merged

(*)Fix occasional bug with PFv_visc_rem diagnostic#128
marshallward merged 2 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:PFv_visc_rem_bugfix

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

Corrected a bug that causes the bottom-drag filtered meridional acceleration
diagnostics, like PFv_visc_rem, to erroneously be filled with all zeros unless
one of the filtered u-point diagnostics is also enabled in the diag_table, and
conversely could lead to segmentation fault if there are are only filtered
u-point diagnostics. However, if at least one of both kinds of diagnostics are
enabled, everything was already working as intended. Also changed a call to
enabled_averaging into a call to enable_averages to avoid having to scale an
argument. All solutions are bitwise identical, and in many cases the
diagnostics are also unchanged.

  Corrected a bug that causes the bottom-drag filtered meridional acceleration
diagnostics, like PFv_visc_rem, to erroneously be filled with all zeros unless
one of the filtered u-point diagnostics is also enabled in the diag_table, and
conversely could lead to segmentation fault if there are are only filtered
u-point diagnostics.  However, if at least one of both kinds of diagnostics are
enabled, everything was already working as intended.  Also changed a call to
enabled_averaging into a call to enable_averages to avoid having to scale an
argument.  All solutions are bitwise identical, and in many cases the
diagnostics are also unchanged.
@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label May 20, 2022
@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2022

Codecov Report

Merging #128 (6ae0c4a) into dev/gfdl (8b51305) will not change coverage.
The diff coverage is 50.00%.

@@            Coverage Diff            @@
##           dev/gfdl     #128   +/-   ##
=========================================
  Coverage     33.45%   33.45%           
=========================================
  Files           262      262           
  Lines         71384    71384           
  Branches      13323    13323           
=========================================
  Hits          23884    23884           
  Misses        43028    43028           
  Partials       4472     4472           
Impacted Files Coverage Δ
src/core/MOM_barotropic.F90 53.67% <50.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b51305...6ae0c4a. Read the comment docs.

@marshallward
Copy link
Copy Markdown
Member

marshallward commented May 28, 2022

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

@marshallward marshallward merged commit 9a604d4 into NOAA-GFDL:dev/gfdl May 28, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the PFv_visc_rem_bugfix branch July 16, 2022 09:42
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