]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Relax requirement on a function so as to allow resetting the
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 13 Apr 2015 22:40:16 +0000 (17:40 -0500)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 13 Apr 2015 22:40:16 +0000 (17:40 -0500)
active_cell_index field also for unused (not only for active and
non-active) cells.

source/grid/tria_accessor.cc

index 712d430468ff735b1a5ee3aab343044da1e57423..95d9e30e864bd27f1d092f82dc8c24eaa86df166 100644 (file)
@@ -1533,7 +1533,8 @@ template <int dim, int spacedim>
 void
 CellAccessor<dim, spacedim>::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;
 }

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.