]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Count down, not up.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Jul 2013 12:56:01 +0000 (12:56 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 3 Jul 2013 12:56:01 +0000 (12:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@29925 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/tensor.h

index eaceaee41b4678210b35a43364c146b11a6dddd7..bb5a41193fa1b4407f1e30645f7edc1e67cdfe96 100644 (file)
@@ -625,7 +625,7 @@ Tensor<rank_, dim, Number>::unrolled_to_component_indices(const unsigned int i)
   TableIndices<rank_>   indices;
 
   unsigned int remainder = i;
-  for (int r=rank_-1; r>=0; ++r)
+  for (int r=rank_-1; r>=0; --r)
     {
       indices[r] = (remainder % dim);
       remainder /= dim;

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.