]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix assert
authorPeter Munch <peterrmuench@gmail.com>
Sat, 21 Sep 2019 09:20:09 +0000 (11:20 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sat, 21 Sep 2019 09:20:09 +0000 (11:20 +0200)
source/dofs/dof_handler_policy.cc

index d47eda9007799350c266046b09854d57f2f22ff3..27410607da029f7872051fdb62074b8df264e100 100644 (file)
@@ -4720,11 +4720,14 @@ 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, 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

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.