]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning 17769/head
authorPeter Munch <peterrmuench@gmail.com>
Fri, 11 Oct 2024 15:39:09 +0000 (17:39 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Fri, 11 Oct 2024 15:39:09 +0000 (17:39 +0200)
source/lac/sparsity_tools.cc

index 83671e16eb81a5e91e885c3ba678c10c2488d2cf..c76f101eaeaafbd2656505c5d1bc41dbe97183fa 100644 (file)
@@ -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())

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.