From: Marc Fehling Date: Tue, 15 Nov 2022 21:40:19 +0000 (-0700) Subject: Use copy function internally in LA::d::Vector. X-Git-Tag: v9.5.0-rc1~840^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=302b8d5cd317a6dddcdc0bd813585f382320faa9;p=dealii.git Use copy function internally in LA::d::Vector. --- 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();