From: Menno Fraters Date: Wed, 20 May 2020 01:59:57 +0000 (-0700) Subject: fix bug in symmetric tensor unrolled_to_component_indices function. X-Git-Tag: v9.3.0-rc1~1605^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60a503cc18d620d1115a4723f829930cf478ef0b;p=dealii.git fix bug in symmetric tensor unrolled_to_component_indices function. --- 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};