]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace ExcInternalError by more accurate ExcImpossibleInDim
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 22 Mar 2011 19:10:30 +0000 (19:10 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Tue, 22 Mar 2011 19:10:30 +0000 (19:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@23506 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/tensor.h

index 16fd1ac05c2c2901ac44b1231fb8462f59dfacbc..8e6f011d00e58a536cf89005661746fb0ddf50df 100644 (file)
@@ -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];

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.