]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Don't call fill if source is empty.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Oct 2002 14:12:28 +0000 (14:12 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 22 Oct 2002 14:12:28 +0000 (14:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@6712 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 690e2f979955fa45ca9f27c02f2036a3708d6da2..3503edef9c787b640ccdde4613feb7ad04163930 100644 (file)
@@ -1710,7 +1710,8 @@ TableBase<N,T>::TableBase (const TableBase<N,T> &src)
                 val_size (0)
 {
   reinit (src.table_size);
-  fill (src.data());
+  if (src.n_elements() != 0)
+    fill (src.data());
 };
 
 

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.