From: Matthias Maier Date: Mon, 6 Apr 2015 19:53:07 +0000 (+0200) Subject: Bugfix: Fix an assert in BlockVectorBase ... X-Git-Tag: v8.3.0-rc1~312^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F743%2Fhead;p=dealii.git Bugfix: Fix an assert in BlockVectorBase ... ... and allow multiplication with a negative factor. --- diff --git a/include/deal.II/lac/block_vector_base.h b/include/deal.II/lac/block_vector_base.h index 49c999b379..c7efb88bbe 100644 --- a/include/deal.II/lac/block_vector_base.h +++ b/include/deal.II/lac/block_vector_base.h @@ -2266,7 +2266,7 @@ BlockVectorBase::operator /= (const value_type factor) { AssertIsFinite(factor); - Assert (factor > 0., ExcDivideByZero() ); + Assert (factor != 0., ExcDivideByZero() ); for (size_type i=0; i