From 801124c74c5296e56a0a95dd124cd7928492e8da Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Thu, 26 Sep 2019 22:04:03 +0200 Subject: [PATCH] Enable assert again --- source/dofs/dof_handler_policy.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index be0bf7e3ed..d53a018860 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -4711,14 +4711,11 @@ namespace internal [](const typename DoFHandlerType::active_cell_iterator &cell, const std::vector &received_dof_indices) -> void { - // this function should only be called on ghost cells; however, it - // might happen at periodic boundaries that not locally-relevant - // cells might have been sent: simply ignore these - if (!cell->is_ghost()) - return; - + // this function should only be called on ghost cells, and // on top of that, only on cells that have not been // completed -- which we indicate via the user flag. + // check both + Assert(cell->is_ghost(), ExcInternalError()); Assert(cell->user_flag_set(), ExcInternalError()); // if we just got an incomplete array of DoF indices, then we must -- 2.39.5