From 0462b292fffbdd7780fe85aa18ae8e7460dd73cb Mon Sep 17 00:00:00 2001 From: heister Date: Wed, 18 Sep 2013 16:36:32 +0000 Subject: [PATCH] find_active_cell_around_point now throws the exception ExcPointNotFound git-svn-id: https://svn.dealii.org/trunk@30802 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/doc/news/changes.h | 8 ++++++++ deal.II/source/grid/grid_tools.cc | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/deal.II/doc/news/changes.h b/deal.II/doc/news/changes.h index 3120d72556..870ca7974c 100644 --- a/deal.II/doc/news/changes.h +++ b/deal.II/doc/news/changes.h @@ -85,6 +85,14 @@ inconvenience this causes.

Specific improvements

    + +
  1. + Changed: find_active_cell_around_point now throws the exception ExcPointNotFound + if the point is outside the Triangulation. This exception can be caught. +
    + (Timo Heister, 2013/09/18) +
  2. +
  3. Changed: we now call MPI_Init_thread instead of MPI_Init.
    diff --git a/deal.II/source/grid/grid_tools.cc b/deal.II/source/grid/grid_tools.cc index 292b113d62..f072a4d3dc 100644 --- a/deal.II/source/grid/grid_tools.cc +++ b/deal.II/source/grid/grid_tools.cc @@ -965,7 +965,7 @@ next_cell: } } - Assert (best_cell.first.state() == IteratorState::valid, + AssertThrow (best_cell.first.state() == IteratorState::valid, ExcPointNotFound(p)); return best_cell; @@ -1088,7 +1088,7 @@ next_cell: } } - Assert (best_cell.first.state() == IteratorState::valid, + AssertThrow (best_cell.first.state() == IteratorState::valid, ExcPointNotFound(p)); return best_cell; -- 2.39.5