From bbb9b6217b2c0dd6f8a03250282c1f2ef493f044 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Sat, 30 Sep 2023 07:56:48 +0200 Subject: [PATCH] Update comment --- source/dofs/dof_tools_sparsity.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 = -- 2.39.5