]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix the determinant of a tensor.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Apr 2005 18:07:52 +0000 (18:07 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 6 Apr 2005 18:07:52 +0000 (18:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@10393 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/symmetric_tensor.h

index e18449e0642145743088b4314e17b713740327bb..59dfd96463ed419e3ff54e873137289d6291e028 100644 (file)
@@ -1769,7 +1769,7 @@ double determinant (const SymmetricTensor<2,1> &t)
 inline
 double determinant (const SymmetricTensor<2,2> &t)
 {
-  return (t.data[0] * t.data[1] - 2*t.data[2]*t.data[2]);
+  return (t.data[0] * t.data[1] - t.data[2]*t.data[2]);
 }
 
 

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.