]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify an assertion.
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 6 Aug 2017 23:24:12 +0000 (17:24 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 6 Aug 2017 23:24:12 +0000 (17:24 -0600)
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

index 6c53cfbce627d05e83615016fbb6b5fdef2f3277..cc7745e365d4b37d1b9afdcf0956af404efa7d5e 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.