From 98f7ce9cb1fe74e40ff7313becd08acb93ef706c Mon Sep 17 00:00:00 2001 From: Jonathan Youett <youett@mi.fu-berlin.de> Date: Mon, 24 Oct 2011 10:21:16 +0000 Subject: [PATCH] bugfix: The method rightmultiply changes the object from which it is called. [[Imported from SVN: r8009]] --- dune/gfe/rotation.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dune/gfe/rotation.hh b/dune/gfe/rotation.hh index 31a65c6d..9f89f6ac 100644 --- a/dune/gfe/rotation.hh +++ b/dune/gfe/rotation.hh @@ -454,7 +454,8 @@ public: Dune::FieldMatrix<T,3,3> mat = s.toMatrix(); mat *= 0.5; - Dune::FieldMatrix<T,3,3> skewSquare = mat.rightmultiply(mat); + Dune::FieldMatrix<T,3,3> skewSquare = mat; + skewSquare.rightmultiply(mat); mat += skewSquare; mat *= 2/norm; -- GitLab