From: Simon Sticko Date: Tue, 28 Apr 2020 15:05:19 +0000 (+0200) Subject: Improve error message in SymmetricTensor constructor. X-Git-Tag: v9.2.0-rc1~166^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9980%2Fhead;p=dealii.git Improve error message in SymmetricTensor constructor. --- diff --git a/include/deal.II/base/symmetric_tensor.h b/include/deal.II/base/symmetric_tensor.h index 073c004f57..6fb2799a54 100644 --- a/include/deal.II/base/symmetric_tensor.h +++ b/include/deal.II/base/symmetric_tensor.h @@ -1068,7 +1068,8 @@ SymmetricTensor::SymmetricTensor( static_assert(rank == 2, "This function is only implemented for rank==2"); for (unsigned int d = 0; d < dim; ++d) for (unsigned int e = 0; e < d; ++e) - Assert(t[d][e] == t[e][d], ExcInternalError()); + Assert(t[d][e] == t[e][d], + ExcMessage("The incoming Tensor must be exactly symmetric.")); for (unsigned int d = 0; d < dim; ++d) data[d] = t[d][d];