From: Martin Kronbichler Date: Sat, 30 Sep 2023 05:56:48 +0000 (+0200) Subject: Update comment X-Git-Tag: relicensing~448^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbb9b6217b2c0dd6f8a03250282c1f2ef493f044;p=dealii.git Update comment --- diff --git a/source/dofs/dof_tools_sparsity.cc b/source/dofs/dof_tools_sparsity.cc index bde01c8d47..1dc61b9861 100644 --- a/source/dofs/dof_tools_sparsity.cc +++ b/source/dofs/dof_tools_sparsity.cc @@ -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 =