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

(*)Avoid uninitialized data use in find_interfaces #1493

Merged
merged 2 commits into from
Sep 3, 2021

Conversation

Hallberg-NOAA
Copy link
Collaborator

Modified find_interfaces to avoid using uninitialized data when there is no
input data in a column or only one layer of data and linear interpolation is
nonsensical. This could change the initial conditions in some layer-mode cases,
but in practice all solutions in the MOM6-examples test suite are bitwise
identical, even though temporarily inserted error messages reveal that the
conditions that triggered the modified code are being encountered.

  Modified find_interfaces to avoid using uninitialized data when there is no
input data in a column or only one layer of data and linear interpolation is
nonsensical.  This could change the initial conditions in some layer-mode cases,
but in practice all solutions in the MOM6-examples test suite are bitwise
identical, even though temporarily inserted error messages reveal that the
conditions that triggered the modified code are being encountered.
@codecov
Copy link

codecov bot commented Sep 1, 2021

Codecov Report

Merging #1493 (41c96cc) into dev/gfdl (d1c0835) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##           dev/gfdl    #1493      +/-   ##
============================================
- Coverage     29.04%   29.03%   -0.01%     
============================================
  Files           236      236              
  Lines         71401    71407       +6     
============================================
  Hits          20736    20736              
- Misses        50665    50671       +6     
Impacted Files Coverage Δ
src/initialization/MOM_state_initialization.F90 20.88% <0.00%> (-0.11%) ⬇️

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 d1c0835...41c96cc. Read the comment docs.

@marshallward
Copy link
Collaborator

marshallward commented Sep 3, 2021

@marshallward marshallward merged commit 54b4a23 into mom-ocean:dev/gfdl Sep 3, 2021
@Hallberg-NOAA Hallberg-NOAA deleted the find_interfaces_fix branch November 22, 2021 09:07
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