From 302b8d5cd317a6dddcdc0bd813585f382320faa9 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Tue, 15 Nov 2022 14:40:19 -0700 Subject: [PATCH] Use copy function internally in LA::d::Vector. --- .../lac/la_parallel_vector.templates.h | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/include/deal.II/lac/la_parallel_vector.templates.h b/include/deal.II/lac/la_parallel_vector.templates.h index f6bd7941ca..596855e072 100644 --- a/include/deal.II/lac/la_parallel_vector.templates.h +++ b/include/deal.II/lac/la_parallel_vector.templates.h @@ -694,16 +694,7 @@ namespace LinearAlgebra thread_loop_partitioner = v.thread_loop_partitioner; - const size_type this_size = locally_owned_size(); - if (this_size > 0) - { - dealii::internal::VectorOperations:: - functions::copy( - thread_loop_partitioner, - partitioner->locally_owned_size(), - v.data, - data); - } + copy_locally_owned_data_from(v); } @@ -848,13 +839,7 @@ namespace LinearAlgebra thread_loop_partitioner = c.thread_loop_partitioner; - const size_type this_size = partitioner->locally_owned_size(); - if (this_size > 0) - { - dealii::internal::VectorOperations:: - functions::copy( - thread_loop_partitioner, this_size, c.data, data); - } + copy_locally_owned_data_from(c); if (must_update_ghost_values) update_ghost_values(); -- 2.39.5