From 5e21b25bb1c96e59ef8e7f616a4340ea5555361d Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 6 Aug 2017 17:24:12 -0600 Subject: [PATCH] Simplify an assertion. We already check that a cell is not a ghost cell and we've only marked locally owned cells. So test that. --- source/dofs/dof_handler_policy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dofs/dof_handler_policy.cc b/source/dofs/dof_handler_policy.cc index 6c53cfbce6..cc7745e365 100644 --- a/source/dofs/dof_handler_policy.cc +++ b/source/dofs/dof_handler_policy.cc @@ -2805,7 +2805,7 @@ namespace internal // before if (dealii_cell->user_flag_set() && !dealii_cell->is_ghost()) { - Assert (!dealii_cell->is_artificial(), ExcInternalError()); + Assert (dealii_cell->is_locally_owned(), ExcInternalError()); // check each vertex if it is interesting and push // DoF indices if so -- 2.39.5