]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add a clarifying assertion.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 12 Aug 2017 00:07:52 +0000 (20:07 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 8 Oct 2017 23:21:48 +0000 (19:21 -0400)
source/grid/grid_tools.cc

index 38757cfafdd8e819a80cc9157bea17085bcd48ea..16c19984e65d67e200ff17df3a4fd9f24b403e99 100644 (file)
@@ -3602,6 +3602,10 @@ next_cell:
         const typename Triangulation<dim,spacedim>::cell_iterator
         cell = *cell_ptr;
 
+        Assert(!cell->active(),
+               ExcMessage("This function is only valid for a list of cells that "
+                          "have children (i.e., no cell in the list may be active)."));
+
         internal::FixUpDistortedChildCells
         ::fix_up_faces (cell,
                         std::integral_constant<int, dim>(),

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.