]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix test 10518/head
authorPeter Munch <peterrmuench@gmail.com>
Fri, 12 Jun 2020 05:23:27 +0000 (07:23 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Fri, 12 Jun 2020 05:23:27 +0000 (07:23 +0200)
tests/mpi/muelu_periodicity.cc

index 841e10cbe2a58190ccb071c25f8ec3747f23c8b1..388bc532f0aa1db034a189bfc7633d0be6f90b6c 100644 (file)
@@ -584,11 +584,16 @@ namespace Step22
                                       const int        proc,
                                       Vector<double> & value) const
   {
-    typename DoFHandler<dim>::active_cell_iterator cell =
-      GridTools::find_active_cell_around_point(dof_handler, point);
+    try
+      {
+        typename DoFHandler<dim>::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<dim> &p)
+      {}
 
     std::vector<double> tmp(value.size());
     for (unsigned int i = 0; i < value.size(); ++i)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.