]> https://gitweb.dealii.org/ - dealii.git/commitdiff
find_active_cell_around_point now throws the exception ExcPointNotFound
authorTimo Heister <timo.heister@gmail.com>
Wed, 18 Sep 2013 16:36:32 +0000 (16:36 +0000)
committerTimo Heister <timo.heister@gmail.com>
Wed, 18 Sep 2013 16:36:32 +0000 (16:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@30802 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/doc/news/changes.h
deal.II/source/grid/grid_tools.cc

index 3120d725567c70ac8e0b4418a99868c324a8c00f..870ca7974c226ff48a39a786a810b698dd78a596 100644 (file)
@@ -85,6 +85,14 @@ inconvenience this causes.
 <h3>Specific improvements</h3>
 
 <ol>
+
+  <li>
+  Changed: find_active_cell_around_point now throws the exception ExcPointNotFound
+  if the point is outside the Triangulation. This exception can be caught.
+  <br>
+  (Timo Heister, 2013/09/18)
+  </li>
+
   <li>
   Changed: we now call MPI_Init_thread instead of MPI_Init.
   <br>
index 292b113d624b43120faa3507ad2121cfc883a7b1..f072a4d3dce4c5a5a98a846431ef60f54b18083b 100644 (file)
@@ -965,7 +965,7 @@ next_cell:
           }
       }
 
-    Assert (best_cell.first.state() == IteratorState::valid,
+    AssertThrow (best_cell.first.state() == IteratorState::valid,
             ExcPointNotFound<spacedim>(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<spacedim>(p));
 
     return best_cell;

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.