From c5affa805e06ce46276dc1c148888b3540b1e29d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Delaporte-Mathurin?= <40028739+RemDelaporteMathurin@users.noreply.github.com> Date: Mon, 21 Nov 2022 09:37:57 -0500 Subject: [PATCH] Review suggestions Co-authored-by: Patrick Shriwise --- src/mesh.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mesh.cpp b/src/mesh.cpp index 57fe49ba6b..3849f4d031 100644 --- a/src/mesh.cpp +++ b/src/mesh.cpp @@ -977,9 +977,7 @@ StructuredMesh::MeshIndex CylindricalMesh::get_indices( mapped_r[0] = std::hypot(r.x, r.y); mapped_r[2] = r[2]; - mapped_r[0] += origin_[0]; - mapped_r[1] += origin_[1]; - mapped_r[2] += origin_[2]; + mapped_r -= origin_; if (mapped_r[0] < FP_PRECISION) { mapped_r[1] = 0.0;