From: Peter Munch Date: Sat, 21 Sep 2019 09:20:09 +0000 (+0200) Subject: Fix assert X-Git-Tag: v9.2.0-rc1~1028^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1561b2ab96e86f662bba8e44b73b865a701e20a5;p=dealii.git Fix assert --- diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index d47eda9007..27410607da 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -4720,11 +4720,14 @@ 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, and + // 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; + // 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