]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Enable assert again 8868/head
authorPeter Munch <peterrmuench@gmail.com>
Thu, 26 Sep 2019 20:04:03 +0000 (22:04 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Thu, 26 Sep 2019 20:04:03 +0000 (22:04 +0200)
source/dofs/dof_handler_policy.cc

index be0bf7e3ed6ea3742c01dd4a4cd886599c73adde..d53a01886035dd8e55313b6420841c39053dbe56 100644 (file)
@@ -4711,14 +4711,11 @@ namespace internal
             [](const typename DoFHandlerType::active_cell_iterator &cell,
                const std::vector<types::global_dof_index> &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

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.