Review suggestions

Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
Rémi Delaporte-Mathurin 2022-11-21 09:37:57 -05:00 committed by GitHub
parent f60f95feb4
commit c5affa805e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;