From: Timo Heister Date: Wed, 18 Sep 2013 16:36:32 +0000 (+0000) Subject: find_active_cell_around_point now throws the exception ExcPointNotFound X-Git-Tag: v8.1.0~773 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9ddeca9625438f72f46dfef19ce574bc721ca67;p=dealii.git find_active_cell_around_point now throws the exception ExcPointNotFound git-svn-id: https://svn.dealii.org/trunk@30802 0785d39b-7218-0410-832d-ea1e28bc413d --- 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;