From c9469bcb0822a1622f888035038116a94521d8ab Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 15 Aug 2017 08:50:05 -0600 Subject: [PATCH] Add an assertion. --- source/dofs/dof_handler_policy.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index 508f0c188d..d772c57e95 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -3730,6 +3730,14 @@ namespace internal triangulation->coarse_cell_to_p4est_tree_permutation, triangulation->p4est_tree_to_coarse_cell_permutation); + // at this point, we must have taken care of the data transfer + // on all cells we had previously marked. verify this +#ifdef DEBUG + for (auto cell : dof_handler->active_cell_iterators()) + Assert (cell->user_flag_set() == false, + ExcInternalError()); +#endif + triangulation->load_user_flags(user_flags); } -- 2.39.5