]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix bug in symmetric tensor unrolled_to_component_indices function.
authorMenno Fraters <menno.fraters@outlook.com>
Wed, 20 May 2020 01:59:57 +0000 (18:59 -0700)
committerMenno Fraters <menno.fraters@outlook.com>
Wed, 20 May 2020 01:59:57 +0000 (18:59 -0700)
include/deal.II/base/symmetric_tensor.h

index 204d8f3c17071effca00a576a760a540ab532862..af5539248b219328d779418f90486f771754b5bd 100644 (file)
@@ -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};

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.