From e6eab991433aa2aa997bb03077ced6b8ebf71ca1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 13 Apr 2015 17:40:16 -0500 Subject: [PATCH] Relax requirement on a function so as to allow resetting the active_cell_index field also for unused (not only for active and non-active) cells. --- source/grid/tria_accessor.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/grid/tria_accessor.cc b/source/grid/tria_accessor.cc index 712d430468..95d9e30e86 100644 --- a/source/grid/tria_accessor.cc +++ b/source/grid/tria_accessor.cc @@ -1533,7 +1533,8 @@ template void CellAccessor::set_active_cell_index (const unsigned int active_cell_index) { - Assert (this->used(), TriaAccessorExceptions::ExcCellNotUsed()); + // set the active cell index. allow setting it also for non-active (and unused) + // cells to allow resetting the index after refinement this->tria->levels[this->present_level]->active_cell_indices[this->present_index] = active_cell_index; } -- 2.39.5