From 647437040967dc6eab881d6d71efa1d8057a2e7e Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 11 Aug 2017 20:07:52 -0400 Subject: [PATCH] Add a clarifying assertion. --- source/grid/grid_tools.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 38757cfafd..16c19984e6 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -3602,6 +3602,10 @@ next_cell: const typename Triangulation::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(), -- 2.39.5