From 9e6933ce2115742f0a1975ee2c4db3185e4b0b40 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Fri, 11 Oct 2024 17:39:09 +0200 Subject: [PATCH] Fix warning --- source/lac/sparsity_tools.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/lac/sparsity_tools.cc b/source/lac/sparsity_tools.cc index 83671e16eb..c76f101eae 100644 --- a/source/lac/sparsity_tools.cc +++ b/source/lac/sparsity_tools.cc @@ -835,9 +835,12 @@ namespace SparsityTools } } current_neighbors.resize(write_index); + +#ifdef DEBUG for (const types::global_dof_index node : current_neighbors) Assert(touched_nodes[node] == available_node, ExcInternalError()); +#endif // No more neighbors left -> terminate loop if (current_neighbors.empty()) -- 2.39.5