From: Martin Kronbichler Date: Tue, 5 Mar 2019 17:41:11 +0000 (+0100) Subject: Fix CylindricalManifold::get_new_point X-Git-Tag: v9.1.0-rc1~303^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8537d3b27290f665b31276c6c2b5515770ee2e98;p=dealii.git Fix CylindricalManifold::get_new_point --- 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);