]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename loop variable to differ from enclosing one 5215/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 9 Oct 2017 12:52:26 +0000 (14:52 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 9 Oct 2017 13:11:48 +0000 (15:11 +0200)
include/deal.II/numerics/vector_tools.templates.h

index f1c62f9b98676bf438d4575ba208f6a87c04af3b..9332a367e4c0a688d7fdc50d56843fa1e2126e1f 100644 (file)
@@ -436,9 +436,9 @@ namespace VectorTools
               // that we are allowed to set degrees of freedom if at least
               // one of the components (of the dof) is selected.
               bool selected = false;
-              for (unsigned int i = 0; i < nonzero_components.size(); ++i)
+              for (unsigned int c = 0; c < nonzero_components.size(); ++c)
                 selected =
-                  selected || (nonzero_components[i] && component_mask[i]);
+                  selected || (nonzero_components[c] && component_mask[c]);
 
               if (selected)
                 {

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.