]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update comment 16068/head
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Sat, 30 Sep 2023 05:56:48 +0000 (07:56 +0200)
committerMartin Kronbichler <martin.kronbichler@uni-a.de>
Sat, 30 Sep 2023 06:33:31 +0000 (08:33 +0200)
source/dofs/dof_tools_sparsity.cc

index bde01c8d47a34eae940ac10762f69032f728e306..1dc61b9861f69319ee224323b837f4f4f377e896 100644 (file)
@@ -802,10 +802,10 @@ namespace DoFTools
               neighbor->get_fe().has_support_on_face(j, neighbor_face_no);
           }
 
-        // For the parallel setting, must include also the off-diagonal
-        // coupling, otherwise we will include those on the other cell
-        for (unsigned int f = 0; f < (neighbor->is_locally_owned() ? 1 : 2);
-             ++f)
+        // For the parallel setting, must include also the diagonal
+        // neighbor-neighbor coupling, otherwise those get included on the
+        // other cell
+        for (int f = 0; f < (neighbor->is_locally_owned() ? 1 : 2); ++f)
           {
             const auto &fe = (f == 0) ? cell->get_fe() : neighbor->get_fe();
             const auto &dofs_i =

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.