From: Peter Munch Date: Sun, 25 Jul 2021 13:00:47 +0000 (+0200) Subject: Let find_active_cell_around_point() return mesh.end() if point is not found in BBs X-Git-Tag: v9.4.0-rc1~1122^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12599%2Fhead;p=dealii.git Let find_active_cell_around_point() return mesh.end() if point is not found in BBs --- diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 5c9b766527..b2d78e2a70 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -2774,6 +2774,8 @@ namespace GridTools std::pair::active_cell_iterator, Point> cell_and_position; + cell_and_position.first = mesh.end(); + // To handle points at the border we keep track of points which are close to // the unit cell: std::pair::active_cell_iterator,