From: Peter Munch Date: Thu, 26 Sep 2019 20:04:03 +0000 (+0200) Subject: Enable assert again X-Git-Tag: v9.2.0-rc1~1012^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=801124c74c5296e56a0a95dd124cd7928492e8da;p=dealii.git Enable assert again --- 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