From: Martin Kronbichler Date: Tue, 24 Oct 2017 10:37:21 +0000 (+0200) Subject: Use LA::d::Vector::copy_locally_owned_data_from rather than operator= X-Git-Tag: v9.0.0-rc1~889^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c807ef5ceac2a43374c2e897f95125a79f58a75;p=dealii.git Use LA::d::Vector::copy_locally_owned_data_from rather than operator= --- diff --git a/source/multigrid/mg_transfer_matrix_free.cc b/source/multigrid/mg_transfer_matrix_free.cc index ca1a66644f..a6e11cc4db 100644 --- a/source/multigrid/mg_transfer_matrix_free.cc +++ b/source/multigrid/mg_transfer_matrix_free.cc @@ -157,7 +157,7 @@ void MGTransferMatrixFree AssertDimension(this->ghosted_level_vector[to_level-1].local_size(), src.local_size()); - this->ghosted_level_vector[to_level-1] = src; + this->ghosted_level_vector[to_level-1].copy_locally_owned_data_from(src); this->ghosted_level_vector[to_level-1].update_ghost_values(); this->ghosted_level_vector[to_level] = 0.; @@ -202,7 +202,7 @@ void MGTransferMatrixFree this->ghosted_level_vector[to_level-1]); this->ghosted_level_vector[to_level].compress(VectorOperation::add); - dst = this->ghosted_level_vector[to_level]; + dst.copy_locally_owned_data_from(this->ghosted_level_vector[to_level]); } @@ -221,7 +221,7 @@ void MGTransferMatrixFree AssertDimension(this->ghosted_level_vector[from_level-1].local_size(), dst.local_size()); - this->ghosted_level_vector[from_level] = src; + this->ghosted_level_vector[from_level].copy_locally_owned_data_from(src); this->ghosted_level_vector[from_level].update_ghost_values(); this->ghosted_level_vector[from_level-1] = 0.;