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

(*)Update remap_answer_date set in uninitialized types #243

Merged

Conversation

Hallberg-NOAA
Copy link
Member

Updated the default values of remap_answer_date as declared during the
specification of the wave_speed_CS, remapping_CS and regridding_CS to 99991231 (to use the very latest version of the algorithms) if these control structures are used without further initialization via optional arguments to their various initialization routines (wave_speed_init(), initialize_remapping() and initialize_regridding() or set_regrid_params()). In testing both via the TC tests and the MOM6-examples regression suite, all answers are bitwise identical, because every instance where these are used either does have an appropriate call to the initialization routine, or because (as is the case for remapping diagnostics) they are hard-coded to use the PLM remapping scheme, which is not impacted by this answer_date. It is conceivable, if unlikely, however, that there could be cases outside of the standard MOM6 code that are using this remapping capability without proper initialization of this flag, in which case answers could change. In addition, a comment was updated in the interp_CS_type indicating the cases that would be altered by changing the hard coded default answer_date there, but the default in that case was not changed. All answers and output are identical in the MOM6-examples and TC test suites.

  Updated the default values of remap_answer_date as declared during the
specification of the wave_speed_CS, remapping_CS and regridding_CS to 99991231
(to use the very latest version of the algorithms) if these control structures
are used without further initialization via optional arguments to their various
initialization routines (wave_speed_init(), initialize_remapping() and
initialize_regridding() or set_regrid_params()).  In testing both via the TC
tests and the MOM6-examples regression suite, all answers are bitwise identical,
because every instance where these are used either does have an appropriate call
to the initialization routine, or because (as is the case for remapping
diagnostics) they are hard-coded to use the PLM remapping scheme, which is not
impacted by this answer_date.  It is conceivable, if unlikely, however, that
there could be cases outside of the standard MOM6 code that are using this
remapping capability without proper initialization of this flag, in which case
answers could change.  In addition, a comment was updated in the interp_CS_type
indicating the cases that would be altered by changing the hard coded default
answer_date there, but the default in that case was not changed.  All answers
and output are identical in the MOM6-examples and TC test suites.
@codecov
Copy link

codecov bot commented Nov 16, 2022

Codecov Report

Merging #243 (013e296) into dev/gfdl (6bf43d6) will decrease coverage by 9.95%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##           dev/gfdl     #243      +/-   ##
============================================
- Coverage     47.58%   37.63%   -9.96%     
============================================
  Files            41      263     +222     
  Lines          4522    70475   +65953     
  Branches        792    13098   +12306     
============================================
+ Hits           2152    26520   +24368     
- Misses         2188    39079   +36891     
- Partials        182     4876    +4694     
Impacted Files Coverage Δ
src/ALE/MOM_regridding.F90 26.87% <ø> (ø)
src/ALE/MOM_remapping.F90 74.38% <ø> (ø)
src/ALE/regrid_interp.F90 1.59% <ø> (ø)
src/diagnostics/MOM_wave_speed.F90 44.36% <100.00%> (ø)
config_src/external/ODA_hooks/ocean_da_core.F90 0.00% <0.00%> (ø)
src/user/sloshing_initialization.F90 0.00% <0.00%> (ø)
src/core/MOM_barotropic.F90 58.96% <0.00%> (ø)
src/framework/MOM_unique_scales.F90 7.40% <0.00%> (ø)
src/framework/MOM_io.F90 32.76% <0.00%> (ø)
src/user/supercritical_initialization.F90 0.00% <0.00%> (ø)
... and 226 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 2fa9f3a into NOAA-GFDL:dev/gfdl Nov 25, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the remap_answer_date_default branch February 2, 2023 13:46
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