]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix: Fix an assert in BlockVectorBase ... 743/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 6 Apr 2015 19:53:07 +0000 (21:53 +0200)
committerMatthias Maier <tamiko@43-1.org>
Mon, 6 Apr 2015 19:53:07 +0000 (21:53 +0200)
... and allow multiplication with a negative factor.

include/deal.II/lac/block_vector_base.h

index 49c999b37914855490f2276d12e2930453fbddbe..c7efb88bbe8989538c6229f3ebf33bb752258461 100644 (file)
@@ -2266,7 +2266,7 @@ BlockVectorBase<VectorType>::operator /= (const value_type factor)
 {
 
   AssertIsFinite(factor);
-  Assert (factor > 0., ExcDivideByZero() );
+  Assert (factor != 0., ExcDivideByZero() );
 
   for (size_type i=0; i<n_blocks(); ++i)
     components[i] /= factor;

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.