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

Correct out of bounds index (por_face_areaU) bug #32

Merged
merged 2 commits into from
Dec 10, 2021

Conversation

Hallberg-NOAA
Copy link
Member

Corrected the expressionfs for the por_face_areaU arguments being passed to
zonal_face_thickness() to avoid the array out-of-bounds index errors highlighted in
MOM6 issue #24. Also added comments noting where the por_face_area arrays should
probably be included in the effective (relative) face thickness calculations that are
later used for finding the vertically averaged accelerations by the barotropic solver.
All answers and output are bitwise identical in cases that work, but this should
avoid some run-time or compile-time errors with some compiler settings.

  Corrected the expressionfs for the por_face_areaU arguments being passed to zonal_face_thickness to
avoid the array out-of-bounds index errors highlighted in MOM6 issue mom-ocean#24. Also
added comments noting where the por_face_area arrays should probably be included
in the effective (relative) face thickness calculations that are later used for
finding the vertically averaged accelerations by the barotropic solver.  All
answers and output are bitwise identical in cases that work, but this should
avoid some run-time or compile-time errors with some compiler settings.
@codecov
Copy link

codecov bot commented Dec 7, 2021

Codecov Report

Merging #32 (751b3b4) into dev/gfdl (3364af1) will increase coverage by 0.00%.
The diff coverage is 25.00%.

❗ Current head 751b3b4 differs from pull request most recent head 2213a3f. Consider uploading reports for the commit 2213a3f to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##           dev/gfdl      #32   +/-   ##
=========================================
  Coverage     29.05%   29.05%           
=========================================
  Files           240      240           
  Lines         71293    71293           
=========================================
+ Hits          20712    20714    +2     
+ Misses        50581    50579    -2     
Impacted Files Coverage Δ
src/core/MOM_continuity_PPM.F90 39.46% <25.00%> (+0.19%) ⬆️

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 3364af1...2213a3f. Read the comment docs.

@Hallberg-NOAA Hallberg-NOAA linked an issue Dec 8, 2021 that may be closed by this pull request
@marshallward
Copy link
Member

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

@marshallward marshallward merged commit 2319139 into NOAA-GFDL:dev/gfdl Dec 10, 2021
@Hallberg-NOAA Hallberg-NOAA added the bug Something isn't working label Feb 1, 2022
@Hallberg-NOAA Hallberg-NOAA deleted the pro_face_area_bugfix branch March 25, 2022 12:40
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.

Out of bounds index (por_face_areaU) related to #3
2 participants