]> https://gitweb.dealii.org/ - dealii.git/commitdiff
HangingNodes: ignore artificial neighbors 12767/head
authorPeter Munch <peterrmuench@gmail.com>
Sat, 18 Sep 2021 18:11:32 +0000 (20:11 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Sun, 19 Sep 2021 08:46:51 +0000 (10:46 +0200)
include/deal.II/matrix_free/hanging_nodes_internal.h

index b92fcf231632760c1ecbf8b119329ef0ef996723..5ec5e367dde067ad6bc0ca041a906af61eea093a 100644 (file)
@@ -374,6 +374,9 @@ namespace internal
                   {
                     const auto &neighbor = cell->neighbor(face);
 
+                    if (neighbor->is_artificial())
+                      continue;
+
                     // Neighbor is coarser than us, i.e., face is constrained
                     if (neighbor->level() < cell->level())
                       {
@@ -613,6 +616,10 @@ namespace internal
                           {
                             // If one of them is coarser than us
                             const auto neighbor_cell = edge_neighbor.first;
+
+                            if (neighbor_cell->is_artificial())
+                              continue;
+
                             if (neighbor_cell->level() < cell->level())
                               {
                                 const unsigned int local_line_neighbor =

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.