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

+Add set_initialized #152

Merged
merged 2 commits into from
Jul 5, 2022

Conversation

Hallberg-NOAA
Copy link
Member

Added the overloaded interface set_initialized() to the MOM_restart module, to
record that fields have been initialized, despite not appearing in a restart
file. This will allow for a second call to set_initialized() after a call to
query_initialized() to replicate the existing behavior of query_initialized()
after MOM6 PR #149 (#149) has been
accepted. All answers are bitwise identical, but there is a new public
interface.

  Added the overloaded interface set_initialized() to the MOM_restart module, to
record that fields have been initialized, despite not appearing in a restart
file.  This will allow for a second call to set_initialized() after a call to
query_initialized() to replicate the existing behavior of query_initialized()
after MOM6 PR mom-ocean#149 (NOAA-GFDL#149) has been
accepted.  All answers are bitwise identical, but there is a new public
interface.
@codecov
Copy link

codecov bot commented Jun 20, 2022

Codecov Report

Merging #152 (007a753) into dev/gfdl (12f2e55) will increase coverage by 0.18%.
The diff coverage is 0.00%.

❗ Current head 007a753 differs from pull request most recent head 6ba9016. Consider uploading reports for the commit 6ba9016 to get more accurate results

@@             Coverage Diff              @@
##           dev/gfdl     #152      +/-   ##
============================================
+ Coverage     34.05%   34.23%   +0.18%     
============================================
  Files           259      257       -2     
  Lines         70126    69802     -324     
  Branches      12984    12928      -56     
============================================
+ Hits          23879    23897      +18     
+ Misses        41753    41431     -322     
+ Partials       4494     4474      -20     
Impacted Files Coverage Δ
src/framework/MOM_restart.F90 26.55% <0.00%> (-2.70%) ⬇️
src/core/MOM_variables.F90 16.15% <0.00%> (-0.79%) ⬇️
src/user/MOM_wave_interface.F90 0.57% <0.00%> (-0.46%) ⬇️
...parameterizations/vertical/MOM_diabatic_driver.F90 42.74% <0.00%> (-0.23%) ⬇️
...eterizations/lateral/MOM_lateral_mixing_coeffs.F90 32.99% <0.00%> (-0.10%) ⬇️
src/ALE/MOM_regridding.F90 23.38% <0.00%> (-0.06%) ⬇️
src/parameterizations/vertical/MOM_CVMix_KPP.F90 0.76% <0.00%> (-0.04%) ⬇️
src/framework/MOM_random.F90 76.55% <0.00%> (ø)
src/tracer/pseudo_salt_tracer.F90 0.00% <0.00%> (ø)
... and 22 more

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 12f2e55...6ba9016. Read the comment docs.

@marshallward
Copy link
Member

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

I did not see any case where this was used, but I assume that is for a future PR.

@marshallward marshallward merged commit 1c0e1f8 into NOAA-GFDL:dev/gfdl Jul 5, 2022
Hallberg-NOAA added a commit to Hallberg-NOAA/MOM6 that referenced this pull request Jul 18, 2022
  Call set_initialized for variables after they are initialized, when their lack
of initialization was detected via query_initialized.  This commit reproduces
the model's behavior prior to the removal of the code that set the initialized
flag within query_initialized in NOAA-GFDL#149, and
it completes the set of changes that was envisioned when set_initialized was
added in NOAA-GFDL#152.  All answers are bitwise
identical.
marshallward pushed a commit that referenced this pull request Jul 26, 2022
  Call set_initialized for variables after they are initialized, when their lack
of initialization was detected via query_initialized.  This commit reproduces
the model's behavior prior to the removal of the code that set the initialized
flag within query_initialized in #149, and
it completes the set of changes that was envisioned when set_initialized was
added in #152.  All answers are bitwise
identical.
@Hallberg-NOAA Hallberg-NOAA deleted the add_set_initialized branch February 2, 2023 13:26
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