From 8537d3b27290f665b31276c6c2b5515770ee2e98 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 5 Mar 2019 18:41:11 +0100 Subject: [PATCH] Fix CylindricalManifold::get_new_point --- source/grid/manifold_lib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/grid/manifold_lib.cc b/source/grid/manifold_lib.cc index c08bff2f32..eb0be274ff 100644 --- a/source/grid/manifold_lib.cc +++ b/source/grid/manifold_lib.cc @@ -1049,7 +1049,7 @@ CylindricalManifold::get_new_point( const double lambda = middle * direction; if ((middle - direction * lambda).square() < tolerance * average_length) - return Point() + direction * lambda; + return point_on_axis + direction * lambda; else // If not, using the ChartManifold should yield valid results. return ChartManifold::get_new_point(surrounding_points, weights); -- 2.39.5