From 4f55a41f3f7c73b2d136de36101f846aded1491b Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Fri, 12 Jun 2020 07:23:27 +0200 Subject: [PATCH] Fix test --- tests/mpi/muelu_periodicity.cc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/mpi/muelu_periodicity.cc b/tests/mpi/muelu_periodicity.cc index 841e10cbe2..388bc532f0 100644 --- a/tests/mpi/muelu_periodicity.cc +++ b/tests/mpi/muelu_periodicity.cc @@ -584,11 +584,16 @@ namespace Step22 const int proc, Vector & value) const { - typename DoFHandler::active_cell_iterator cell = - GridTools::find_active_cell_around_point(dof_handler, point); + try + { + typename DoFHandler::active_cell_iterator cell = + GridTools::find_active_cell_around_point(dof_handler, point); - if (cell->is_locally_owned()) - VectorTools::point_value(dof_handler, solution, point, value); + if (cell->is_locally_owned()) + VectorTools::point_value(dof_handler, solution, point, value); + } + catch (GridTools::ExcPointNotFound &p) + {} std::vector tmp(value.size()); for (unsigned int i = 0; i < value.size(); ++i) -- 2.39.5