From dd876ab403a85cca95f4492d95569537b35f41a3 Mon Sep 17 00:00:00 2001
From: Martin Kronbichler <martin.kronbichler@rub.de>
Date: Thu, 20 Mar 2025 14:29:15 +0100
Subject: [PATCH] Clarify that the 'else' case corresponds to 0.0

---
 include/deal.II/lac/sparse_matrix_tools.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/deal.II/lac/sparse_matrix_tools.h b/include/deal.II/lac/sparse_matrix_tools.h
index a1c93cd126..f722d604d8 100644
--- a/include/deal.II/lac/sparse_matrix_tools.h
+++ b/include/deal.II/lac/sparse_matrix_tools.h
@@ -516,6 +516,8 @@ namespace SparseMatrixTools
                             accessor(&system_matrix, ind);
                           cell_matrix(i, j) = accessor.value();
                         }
+                      else
+                        cell_matrix(i, j) = 0.0;
                     }
                   else
                     cell_matrix(i, j) =
-- 
2.39.5