From: Guido Kanschat Date: Tue, 22 Mar 2011 19:10:30 +0000 (+0000) Subject: Replace ExcInternalError by more accurate ExcImpossibleInDim X-Git-Tag: v8.0.0~4211 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1098dfff217a5318b2f55b8791fb671bfe936310;p=dealii.git Replace ExcInternalError by more accurate ExcImpossibleInDim git-svn-id: https://svn.dealii.org/trunk@23506 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/include/deal.II/base/tensor.h b/deal.II/include/deal.II/base/tensor.h index 16fd1ac05c..8e6f011d00 100644 --- a/deal.II/include/deal.II/base/tensor.h +++ b/deal.II/include/deal.II/base/tensor.h @@ -1321,7 +1321,7 @@ void cross_product (Tensor<1,dim> &dst, const Tensor<1,dim> &src) { - Assert (dim==2, ExcInternalError()); + Assert (dim==2, ExcImpossibleInDim(dim)); dst[0] = src[1]; dst[1] = -src[0]; @@ -1345,7 +1345,7 @@ cross_product (Tensor<1,dim> &dst, const Tensor<1,dim> &src1, const Tensor<1,dim> &src2) { - Assert (dim==3, ExcInternalError()); + Assert (dim==3, ExcImpossibleInDim(dim)); dst[0] = src1[1]*src2[2] - src1[2]*src2[1]; dst[1] = src1[2]*src2[0] - src1[0]*src2[2];