From: Wolfgang Bangerth Date: Tue, 15 Aug 2017 14:50:05 +0000 (-0600) Subject: Add an assertion. X-Git-Tag: v9.0.0-rc1~1239^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9469bcb0822a1622f888035038116a94521d8ab;p=dealii.git Add an assertion. --- 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); }