From 352cd7b9489b9e2cf01f0067226cc7b485ee7c2b Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 3 Jul 2013 12:56:01 +0000 Subject: [PATCH] Count down, not up. git-svn-id: https://svn.dealii.org/trunk@29925 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/tensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deal.II/include/deal.II/base/tensor.h b/deal.II/include/deal.II/base/tensor.h index eaceaee41b..bb5a41193f 100644 --- a/deal.II/include/deal.II/base/tensor.h +++ b/deal.II/include/deal.II/base/tensor.h @@ -625,7 +625,7 @@ Tensor::unrolled_to_component_indices(const unsigned int i) TableIndices 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; -- 2.39.5