From: Wolfgang Bangerth Date: Wed, 6 Apr 2005 04:19:52 +0000 (+0000) Subject: A comment was wrong. Fix it and recommend something. X-Git-Tag: v8.0.0~14172 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=870d992e9c606bbb0b5bfea8aebb88161b22a614;p=dealii.git A comment was wrong. Fix it and recommend something. git-svn-id: https://svn.dealii.org/trunk@10375 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 5af05ade35..9e2ff62c30 100644 --- a/deal.II/base/include/base/symmetric_tensor.h +++ b/deal.II/base/include/base/symmetric_tensor.h @@ -604,9 +604,20 @@ class SymmetricTensor /** * Constructor. Generate a symmetric * tensor from a general one. Assumes - * that @p t is already symmetric, but - * this is not checked: we simply copy - * only a subset of elements. + * that @p t is already symmetric, and in + * debug mode this is in fact + * checked. Note that no provision is + * made to assure that the tensor is + * symmetric only up to round-off error: + * if the incoming tensor is not exactly + * symmetric, then an exception is + * thrown. If you know that incoming + * tensor is symmetric only up to + * round-off, then you may want to call + * the symmetrize function + * first. If you aren't sure, it is good + * practice to check before calling + * symmetrize. */ SymmetricTensor (const Tensor<2,dim> &t);