From: Wolfgang Bangerth Date: Sun, 6 Aug 2017 23:24:12 +0000 (-0600) Subject: Simplify an assertion. X-Git-Tag: v9.0.0-rc1~1354^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e21b25bb1c96e59ef8e7f616a4340ea5555361d;p=dealii.git 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. --- 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