From 1098dfff217a5318b2f55b8791fb671bfe936310 Mon Sep 17 00:00:00 2001 From: Guido Kanschat Date: Tue, 22 Mar 2011 19:10:30 +0000 Subject: [PATCH] Replace ExcInternalError by more accurate ExcImpossibleInDim git-svn-id: https://svn.dealii.org/trunk@23506 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/base/tensor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]; -- 2.39.5