From: Martin Kronbichler Date: Fri, 15 Mar 2024 11:30:10 +0000 (+0100) Subject: Simplify even more X-Git-Tag: v9.6.0-rc1~481^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16751%2Fhead;p=dealii.git Simplify even more --- 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();