From 123a295a21f6b40cf9c185f505c4aeef830996aa Mon Sep 17 00:00:00 2001 From: Niklas Fehn Date: Tue, 7 Jul 2020 16:18:31 +0200 Subject: [PATCH] fix another test (particles/generators_07) --- source/grid/grid_tools.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index fdf7bb6e58..5b005fee6a 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -4623,7 +4623,10 @@ namespace GridTools break; } catch (...) - {} + { + if (counter == n_points) + return cell_qpoint_map; + } auto last_cell = cell_qpoint_map.emplace(std::make_pair( point_and_reference_location.first, -- 2.39.5