]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Allow creation of a Tensor<1,0>.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Aug 2011 20:57:41 +0000 (20:57 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 12 Aug 2011 20:57:41 +0000 (20:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@24052 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/tensor_base.h

index 373be4f1410f3c93d202b5f7424324a527c385c8..ed309aeef7db6106236cec76e6dbf24c38eddcfe 100644 (file)
@@ -886,8 +886,6 @@ template <int dim, typename Number>
 inline
 Tensor<1,dim,Number>::Tensor (const bool initialize)
 {
-  Assert (dim>0, ExcDimTooSmall(dim));
-
   if (initialize)
     for (unsigned int i=0; i!=dim; ++i)
       values[i] = 0;

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.