From 537616b2d21ff5a9aa043714033e4faeb1869446 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Wed, 19 Jan 2022 21:57:35 +0100 Subject: [PATCH] Fix LA::Vector::reinit() --- include/deal.II/lac/la_vector.templates.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/deal.II/lac/la_vector.templates.h b/include/deal.II/lac/la_vector.templates.h index c8713aea5b..5d68773869 100644 --- a/include/deal.II/lac/la_vector.templates.h +++ b/include/deal.II/lac/la_vector.templates.h @@ -71,11 +71,7 @@ namespace LinearAlgebra Assert(dynamic_cast *>(&V) != nullptr, ExcVectorTypeNotCompatible()); - // Downcast V. If fails, throws an exception. const Vector &down_V = dynamic_cast &>(V); - Assert(down_V.size() == this->size(), - ExcMessage( - "Cannot add two vectors with different numbers of elements")); ReadWriteVector::reinit(down_V, omit_zeroing_entries); } -- 2.39.5