From d9b1c3869207e098097ed97a61048682fc856e51 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Thu, 2 May 2024 19:48:43 -0400 Subject: [PATCH] Update src/simplnx/DataStructure/Geometry/RectGridGeom.cpp Co-authored-by: Jared Duffey --- src/simplnx/DataStructure/Geometry/RectGridGeom.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp b/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp index a8bf3376a7..3dbb780a6e 100644 --- a/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp +++ b/src/simplnx/DataStructure/Geometry/RectGridGeom.cpp @@ -545,9 +545,9 @@ Point3D RectGridGeom::getPlaneCoords(usize idx) const std::pair RectGridGeom::getCellBounds(usize x, usize y, usize z) const { - auto xBnds = getXBounds(); - auto yBnds = getYBounds(); - auto zBnds = getZBounds(); + const auto& xBnds = getXBoundsRef(); + const auto& yBnds = getYBoundsRef(); + const auto& zBnds = getZBoundsRef(); Point3Df minCoords; minCoords[0] = static_cast((*xBnds)[x]);