From: wolf Date: Wed, 6 Apr 2005 18:07:52 +0000 (+0000) Subject: Fix the determinant of a tensor. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1afe882c2a4c7c686ae186a4d90436f4b43dc746;p=dealii-svn.git Fix the determinant of a tensor. git-svn-id: https://svn.dealii.org/trunk@10393 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/symmetric_tensor.h b/deal.II/base/include/base/symmetric_tensor.h index e18449e064..59dfd96463 100644 --- a/deal.II/base/include/base/symmetric_tensor.h +++ b/deal.II/base/include/base/symmetric_tensor.h @@ -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]); }