From: Peter Munch Date: Fri, 11 Oct 2024 15:39:09 +0000 (+0200) Subject: Fix warning X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e6933ce2115742f0a1975ee2c4db3185e4b0b40;p=dealii.git Fix warning --- 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())