]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace Number(0) by Number(). 3114/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 14 Sep 2016 12:54:03 +0000 (06:54 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 14 Sep 2016 12:54:03 +0000 (06:54 -0600)
include/deal.II/lac/vector.templates.h

index 0a1177cf5079b5712ca93384be80a995312f1ce4..a641d667302f1d41c0238a8f10ebd6b3b63170c0 100644 (file)
@@ -304,7 +304,7 @@ void Vector<Number>::reinit (const size_type n,
     }
 
   if (omit_zeroing_entries == false)
-    *this = Number(0);
+    *this = Number();
 }
 
 
@@ -332,7 +332,7 @@ void Vector<Number>::reinit (const Vector<Number2> &v,
     };
   vec_size = v.vec_size;
   if (omit_zeroing_entries == false)
-    *this = Number(0);
+    *this = Number();
 }
 
 
@@ -344,7 +344,7 @@ Vector<Number>::all_zero () const
   Assert (vec_size!=0, ExcEmptyObject());
 
   for (size_type i=0; i<vec_size; ++i)
-    if (val[i] != Number(0))
+    if (val[i] != Number())
       return false;
   return true;
 }

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.