Closed mgjarrett closed 5 months ago
Whoah nice catch! Will this affect internal integration testing?
Whoah nice catch! Will this affect internal integration testing?
Michael did that testing. This is ready for prime time.
FWIW this existed prior to the refactoring in #1373
My intention there was just to copy code off Grid
and move it to StructuredGrid
. But I'm glad it has been discovered and fixed!
Ah, I didn't look that closely. Didn't see the side-by-side diff because it was moved to a new file.
It looks like this had been around for over 5 years (probably much longer). I guess this shows how little exercise the Cartesian code gets.
What is the change?
The staticmethod to get neighboring cell indices in a
StructuredGrid
is implemented incorrectly:https://github.com/terrapower/armi/blob/14c951a05214154a1e6bfb43c728aa714084cea7/armi/reactor/grids/structuredgrid.py#L379-L382
It looks like a typo; there is a
1
where there should be ani
.Also, a unit test is added to cover this function.
Why is the change being made?
The previous implementation is incorrect.
Checklist
doc/release/0.X.rst
) are up-to-date with any important changes.doc
folder.pyproject.toml
.