From 870d992e9c606bbb0b5bfea8aebb88161b22a614 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 6 Apr 2005 04:19:52 +0000 Subject: [PATCH] A comment was wrong. Fix it and recommend something. git-svn-id: https://svn.dealii.org/trunk@10375 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/symmetric_tensor.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) 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); -- 2.39.5