Skip to content

Fatal error if a tracer package is registered twice#182

Merged
marshallward merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:fatal_repeat_tracer_registration
Aug 8, 2022
Merged

Fatal error if a tracer package is registered twice#182
marshallward merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:fatal_repeat_tracer_registration

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

Made the WARNING error messages that were issued if a tracer package
registration routine is called with an associated control structure into FATAL
errors, as suggested by github.com/mom-ocean/issues/1444. A tracer package
could be used twice, but it would require the use of separate control structures
for each instance. This change will bring down the model in a case that
probably should not be running. All solutions are bitwise identical in any
cases that run, and all MOM6-examples test cases work exactly as before.

  Made the WARNING error messages that were issued if a tracer package
registration routine is called with an associated control structure into FATAL
errors, as suggested by github.com/mom-ocean/issues/1444.  A tracer package
could be used twice, but it would require the use of separate control structures
for each instance.  This change will bring down the model in a case that
probably should not be running.  All solutions are bitwise identical in any
cases that run, and all MOM6-examples test cases work exactly as before.
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 2, 2022

Codecov Report

Merging #182 (88230fc) into dev/gfdl (90cac5b) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           dev/gfdl     #182   +/-   ##
=========================================
  Coverage     37.38%   37.39%           
=========================================
  Files           259      259           
  Lines         71997    71981   -16     
  Branches      13515    13515           
=========================================
  Hits          26916    26916           
+ Misses        40094    40078   -16     
  Partials       4987     4987           
Impacted Files Coverage Δ
src/tracer/DOME_tracer.F90 51.81% <0.00%> (+0.46%) ⬆️
src/tracer/ISOMIP_tracer.F90 0.00% <ø> (ø)
src/tracer/MOM_CFC_cap.F90 18.03% <0.00%> (+0.09%) ⬆️
src/tracer/MOM_OCMIP2_CFC.F90 0.00% <0.00%> (ø)
src/tracer/MOM_generic_tracer.F90 0.00% <0.00%> (ø)
src/tracer/RGC_tracer.F90 0.00% <0.00%> (ø)
src/tracer/advection_test_tracer.F90 0.00% <0.00%> (ø)
src/tracer/boundary_impulse_tracer.F90 0.00% <0.00%> (ø)
src/tracer/dye_example.F90 0.00% <0.00%> (ø)
src/tracer/dyed_obc_tracer.F90 0.00% <0.00%> (ø)
... and 5 more

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@marshallward
Copy link
Copy Markdown
Member

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

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.

2 participants