From: Wolfgang Bangerth Date: Mon, 13 Apr 2015 22:40:16 +0000 (-0500) Subject: Relax requirement on a function so as to allow resetting the X-Git-Tag: v8.3.0-rc1~274^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6eab991433aa2aa997bb03077ced6b8ebf71ca1;p=dealii.git 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. --- 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; }