Skip to content

(*)Set defaults in USE_REGRIDDING get_param calls#180

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

(*)Set defaults in USE_REGRIDDING get_param calls#180
marshallward merged 3 commits into
NOAA-GFDL:dev/gfdlfrom
Hallberg-NOAA:set_USE_REGRIDDING_defaults

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Member

Set default values in all get_param calls for USE_REGRIDDING. Previously,
there had been 4 calls where this was missing, which led to the problems noted
at mom-ocean#1576. This PR will allow that issue
to be closed. Also used the default argument in a get_param call for INPUTDIR,
although that case would not change any behavior because the value was set
before the get_param call. A fail_in_missing argument was added to the FMS_cap
call to get_param for GUST_2D_FILE, mirroring what is done for the solo_driver
code, but cases where this was actually missing were very likely to have failed
later anyway, but without an explicit error message. This PR could change
unpredictable behavior in cases where USE_REGRIDDING is not explicitly set, but
all answers are bitwise identical in the MOM6-examples test suite.

  Set default values in all get_param calls for USE_REGRIDDING.  Previously,
there had been 4 calls where this was missing, which led to the problems noted
at mom-ocean#1576.  This PR will allow that issue
to be closed.  Also used the default argument in a get_param call for INPUTDIR,
although that case would not change any behavior because the value was set
before the get_param call.  A fail_in_missing argument was added to the FMS_cap
call to get_param for GUST_2D_FILE, mirroring what is done for the solo_driver
code, but cases where this was actually missing were very likely to have failed
later anyway, but without an explicit error message.  This PR could change
unpredictable behavior in cases where USE_REGRIDDING is not explicitly set, but
all answers are bitwise identical in the MOM6-examples test suite.
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 1, 2022

Codecov Report

Merging #180 (4e8115f) into dev/gfdl (2d574b6) will increase coverage by 0.30%.
The diff coverage is 15.38%.

@@             Coverage Diff              @@
##           dev/gfdl     #180      +/-   ##
============================================
+ Coverage     37.52%   37.82%   +0.30%     
============================================
  Files           259      258       -1     
  Lines         71609    70858     -751     
  Branches      13327    13279      -48     
============================================
- Hits          26873    26804      -69     
+ Misses        39792    39127     -665     
+ Partials       4944     4927      -17     
Impacted Files Coverage Δ
src/user/BFB_initialization.F90 0.00% <0.00%> (ø)
src/user/DOME2d_initialization.F90 0.00% <0.00%> (ø)
src/user/Kelvin_initialization.F90 0.00% <0.00%> (ø)
src/user/dense_water_initialization.F90 0.00% <0.00%> (ø)
src/user/dumbbell_initialization.F90 0.00% <0.00%> (ø)
src/user/shelfwave_initialization.F90 0.00% <0.00%> (ø)
src/initialization/MOM_state_initialization.F90 21.46% <100.00%> (ø)
...rc/parameterizations/vertical/MOM_tidal_mixing.F90 1.43% <0.00%> (-0.89%) ⬇️
src/tracer/MOM_tracer_advect.F90 58.92% <0.00%> (-0.29%) ⬇️
src/parameterizations/CVmix/cvmix_kpp.F90 0.00% <0.00%> (ø)
... and 2 more

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

Hallberg-NOAA and others added 2 commits August 2, 2022 07:04
  Added fail_if_missing or default arguments to 5 get_param calls in user code,
with values set consistently with other calls for the same parameters. Also
replaced 4 get_param calls with copies of equivalent fields from the grid type
in one use initialization routine.  All answers are bitwise identical.
@marshallward
Copy link
Copy Markdown
Member

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

@marshallward marshallward merged commit 6c7812a into NOAA-GFDL:dev/gfdl Aug 3, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the set_USE_REGRIDDING_defaults branch February 2, 2023 14:13
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