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

+Better error handling in reset_face_lengths_list() #1251

Merged
merged 2 commits into from
Nov 20, 2020

Conversation

Hallberg-NOAA
Copy link
Collaborator

Added error handling to reset_face_lengths_list() to note (and possibly trigger
a fatal error) for any entries in the CHANNEL_LIST_FILE that do not cause any
open face lengths to change. The runtime parameter FATAL_UNUSED_CHANNEL_WIDTHS
determines whether only warnings are issued or whether there should be a fatal
error; the default is false because otherwise a number of the Baltic test cases
that deliberately share files with global cases would fail due to channels
outside of their domains. This PR addresses MOM6 issue #683, which should be
closed once this PR is merged in, although by default this new code triggers
warnings and not the suggested fatal error. All answers are bitwise identical,
but there are new entries in some MOM_parameter_doc files.

  Added error handling to reset_face_lengths_list to note (and possibly trigger
a fatal error) for any entries in the CHANNEL_LIST_FILE that do not cause any
open face lengths to change. The runtime parameter FATAL_UNUSED_CHANNEL_WIDTHS
determines whether only warnings are issued or whether there should be a fatal
error; the default is false because otherwise a number of the Baltic test cases
that deliberately share files with global cases would fail due to channels
outside of their domains.  This PR addresses MOM6 issue mom-ocean#683, which should be
closed once this PR is merged in, although by default this new code triggers
warnings and not the suggested fatal error.  All answers are bitwise identical,
but there are new entries in some MOM_parameter_doc files.
@@ -889,16 +898,19 @@ subroutine reset_face_lengths_list(G, param_file, US)
call broadcast(num_lines, root_PE())
u_pt = 0 ; v_pt = 0
if (num_lines > 0) then
allocate (lines(num_lines))
if (num_lines > 0) then
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bizarre!

@codecov-io
Copy link

codecov-io commented Nov 20, 2020

Codecov Report

Merging #1251 (38fc037) into dev/gfdl (d1b4247) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl    #1251      +/-   ##
============================================
- Coverage     46.04%   46.02%   -0.02%     
============================================
  Files           224      224              
  Lines         71037    71064      +27     
============================================
  Hits          32707    32707              
- Misses        38330    38357      +27     
Impacted Files Coverage Δ
src/initialization/MOM_shared_initialization.F90 39.71% <0.00%> (-1.62%) ⬇️

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 d1b4247...38fc037. Read the comment docs.

@marshallward
Copy link
Collaborator

marshallward commented Nov 20, 2020

https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/11547 ✔️ 🟡

Passes up to parameter change (as expected)

@marshallward marshallward merged commit 80a6df4 into mom-ocean:dev/gfdl Nov 20, 2020
@Hallberg-NOAA Hallberg-NOAA deleted the face_lengths_errors branch July 30, 2021 16:08
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.

4 participants