From 60a503cc18d620d1115a4723f829930cf478ef0b Mon Sep 17 00:00:00 2001 From: Menno Fraters Date: Tue, 19 May 2020 18:59:57 -0700 Subject: [PATCH] fix bug in symmetric tensor unrolled_to_component_indices function. --- include/deal.II/base/symmetric_tensor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index 204d8f3c17..af5539248b 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -2442,7 +2442,7 @@ namespace internal if (i < dim) return {i, i}; - for (unsigned int d = 0, c = 0; d < dim; ++d) + for (unsigned int d = 0, c = dim; d < dim; ++d) for (unsigned int e = d + 1; e < dim; ++e, ++c) if (c == i) return {d, e}; -- 2.39.5