]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a conversion from SymmetricTensor to Tensor
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 20 Jan 2019 16:26:44 +0000 (17:26 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 21 Jan 2019 09:01:53 +0000 (10:01 +0100)
include/deal.II/base/symmetric_tensor.templates.h

index 7ce41471eeafc46c92ba419eaff732dd21b23e93..b5b496379b4d643741e238b05a2981893bc96448 100644 (file)
@@ -160,7 +160,8 @@ namespace internal
 
       // Initialize the transformation matrix as the
       // identity tensor
-      Q = dealii::unit_symmetric_tensor<dim, Number>();
+      Q = static_cast<Tensor<2, dim, Number>>(
+        dealii::unit_symmetric_tensor<dim, Number>());
 
       // Make the first row and column to be of the
       // desired form

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.