]> https://gitweb.dealii.org/ - dealii.git/commitdiff
face_has_flux_coupling may be a predicate made of multiple, complicated checks; It...
authorVladimir Yushutin <vyushut@clemson.edu>
Sat, 11 Feb 2023 22:43:38 +0000 (17:43 -0500)
committerVladimir Yushutin <vyushut@clemson.edu>
Sat, 11 Feb 2023 22:43:38 +0000 (17:43 -0500)
source/dofs/dof_tools_sparsity.cc

index 3646021f75994c05b6fcaccf68bb81a2a251b2a1..9309e9edd29470d929638168c71a0af3d4dcca9b 100644 (file)
@@ -852,9 +852,6 @@ namespace DoFTools
                         }
                       else
                         {
-                          if (!face_has_flux_coupling(cell, face_n))
-                            continue;
-
                           typename DoFHandler<dim,
                                               spacedim>::level_cell_iterator
                             neighbor =
@@ -888,6 +885,10 @@ namespace DoFTools
                               neighbor->is_locally_owned())
                             continue; // (the neighbor is finer)
 
+                          if (!face_has_flux_coupling(cell, face_n))
+                            continue;
+
+
                           const unsigned int neighbor_face_n =
                             periodic_neighbor ?
                               cell->periodic_neighbor_face_no(face_n) :
@@ -1197,9 +1198,6 @@ namespace DoFTools
                             level_cell_iterator neighbor =
                               cell->neighbor_or_periodic_neighbor(face);
 
-                          if (!face_has_flux_coupling(cell, face))
-                            continue;
-
                           // Like the non-hp-case: If the cells are on the same
                           // level (and both are active, locally-owned cells)
                           // then only add to the sparsity pattern if the
@@ -1229,6 +1227,10 @@ namespace DoFTools
                               neighbor->is_locally_owned())
                             continue; // (the neighbor is finer)
 
+
+                          if (!face_has_flux_coupling(cell, face))
+                            continue;
+
                           // In 1d, go straight to the cell behind this
                           // particular cell's most terminal cell. This makes us
                           // skip the if (neighbor->has_children()) section

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.