-
Notifications
You must be signed in to change notification settings - Fork 388
fixed bad array sizes in local ocean arrays #598
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
fixed bad array sizes in local ocean arrays #598
Conversation
two ocean modules had local arrays that were
not properly sized to accommodate the practice
of using nCellsAll+1 (Edges, Vertices) as a
location to represent non-existent cells, edges, vertices
this commit extends the dimension by one for these arrays
mattdturner
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved by visual inspection
mark-petersen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved by inspection. I'm surprised this didn't cause problems on other compilers.
- previous commit changed array sizes in ocn mesh routine but
did not change following initialization loops.
- previous commit missed some similar loops in the update routine
|
Sorry guys, got a bit sloppy. When I fixed array sizes in the mesh module, I forgot to change subsequent initialization loop limits. Just pushed a fix (well, actually two commits because I missed a second set of loops in the update routine). Still b4b, and actually works in the branch where I triggered this bug. |
|
Tested with gnu and intel, optimized and debug, is bfb with previous. |
fixed bad array sizes in local ocean arrays MPAS-Dev/MPAS-Model#598 Remove RediKappa from gm package MPAS-Dev/MPAS-Model#602 Fixes bugs in tracer_advection_std MPAS-Dev/MPAS-Model#587
…3634) Update mpas-source: three ocean bug fixes This PR brings in a new mpas-source submodule with changes only to the ocean core. It fixes three small bugs that do not impact any current E3SM test configurations: * fixes bad array sizes in local ocean arrays (MPAS-Dev/MPAS-Model#598) * removes RediKappa from gm package (MPAS-Dev/MPAS-Model#602) * fixes bugs in tracer_advection_std (MPAS-Dev/MPAS-Model#587) [BFB]
Update mpas-source: three ocean bug fixes This PR brings in a new mpas-source submodule with changes only to the ocean core. It fixes three small bugs that do not impact any current E3SM test configurations: * fixes bad array sizes in local ocean arrays (MPAS-Dev/MPAS-Model#598) * removes RediKappa from gm package (MPAS-Dev/MPAS-Model#602) * fixes bugs in tracer_advection_std (MPAS-Dev/MPAS-Model#587) [BFB]
fixed bad array sizes in local ocean arrays MPAS-Dev#598 Two ocean modules had local arrays that were not properly sized to accommodate the practice of using nCellsAll+1 (Edges, Vertices) as a location to represent non-existent cells, edges, vertices. This would result in out-of-bounds references. This fix just extends the dimension by one for the arrays that will potentially be referenced in this way. Fixes MPAS-Dev#597 [b4b] in QU240 test on Summit - meaning out of bounds refs so far had fortunately no impact
Two ocean modules had local arrays that were not properly sized to accommodate the practice of using nCellsAll+1 (Edges, Vertices) as a location to represent non-existent cells, edges, vertices. This would result in out-of-bounds references. This fix just extends the dimension by one for the arrays that will potentially be referenced in this way.
Fixes #597
[b4b] in QU240 test on Summit - meaning out of bounds refs so far had fortunately no impact