]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix obviously bogus assertion.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 14 Oct 2002 15:01:55 +0000 (15:01 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 14 Oct 2002 15:01:55 +0000 (15:01 +0000)
git-svn-id: https://svn.dealii.org/trunk@6644 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/include/base/table.h

index 79dadf8152ec3510c0487084036bf6e22e2814cb..717be31055c4dae31b9c39b21773997403fd9c27 100644 (file)
@@ -1925,7 +1925,7 @@ inline
 void
 TableBase<N,T>::clear ()
 {
-  Assert (size()[0]*size()[1] != 0,
+  Assert (n_elements() != 0,
           ExcMessage("Trying to fill an empty matrix."));
   std::fill_n (val, n_elements(), T());
 };

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.