From b9051be7692148355deb0f0d32b2e2c066d87ad7 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Mon, 6 Apr 2015 21:53:07 +0200 Subject: [PATCH] Bugfix: Fix an assert in BlockVectorBase ... ... and allow multiplication with a negative factor. --- include/deal.II/lac/block_vector_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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