From d231ce7e4c764b9509644af382a7126beb558eb7 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Fri, 15 Mar 2024 12:30:10 +0100 Subject: [PATCH] Simplify even more --- include/deal.II/lac/vector.templates.h | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/include/deal.II/lac/vector.templates.h b/include/deal.II/lac/vector.templates.h index 21707800d5..139d7a6b69 100644 --- a/include/deal.II/lac/vector.templates.h +++ b/include/deal.II/lac/vector.templates.h @@ -1092,16 +1092,9 @@ Vector::do_reinit(const size_type new_size, const bool omit_zeroing_entries, const bool reset_partitioner) { - if (new_size == 0) - { - values.clear(); - } - else - { - values.resize_fast(new_size); - if (!omit_zeroing_entries) - values.fill(); - } + values.resize_fast(new_size); + if (!omit_zeroing_entries) + values.fill(); if (reset_partitioner) maybe_reset_thread_partitioner(); -- 2.39.5