From 8a5a613c724f12ea761dfbb65aa489c20cace0a7 Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Mon, 30 Nov 2020 19:08:28 +0000 Subject: [PATCH] Fix failing tests --- tests/cuda/matrix_free_matrix_vector_10.cu | 8 ++++---- tests/cuda/matrix_free_matrix_vector_10a.cu | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/cuda/matrix_free_matrix_vector_10.cu b/tests/cuda/matrix_free_matrix_vector_10.cu index 20fc27ab3a..a5523ce6ee 100644 --- a/tests/cuda/matrix_free_matrix_vector_10.cu +++ b/tests/cuda/matrix_free_matrix_vector_10.cu @@ -122,10 +122,10 @@ test() Number, LinearAlgebra::distributed::Vector> mf(mf_data, coef_size); - LinearAlgebra::distributed::Vector in_dev( - owned_set, MPI_COMM_WORLD); - LinearAlgebra::distributed::Vector out_dev( - owned_set, MPI_COMM_WORLD); + LinearAlgebra::distributed::Vector in_dev; + LinearAlgebra::distributed::Vector out_dev; + mf_data.initialize_dof_vector(in_dev); + mf_data.initialize_dof_vector(out_dev); LinearAlgebra::ReadWriteVector rw_in(owned_set); for (unsigned int i = 0; i < in_dev.local_size(); ++i) diff --git a/tests/cuda/matrix_free_matrix_vector_10a.cu b/tests/cuda/matrix_free_matrix_vector_10a.cu index d621ae7fe3..f2831c1327 100644 --- a/tests/cuda/matrix_free_matrix_vector_10a.cu +++ b/tests/cuda/matrix_free_matrix_vector_10a.cu @@ -123,12 +123,12 @@ test() fe_degree, Number, LinearAlgebra::distributed::Vector> - mf(mf_data, coef_size, false); - LinearAlgebra::distributed::Vector in_dev( - owned_set, MPI_COMM_WORLD); - LinearAlgebra::distributed::Vector out_dev( - owned_set, MPI_COMM_WORLD); + mf(mf_data, coef_size, false); + LinearAlgebra::distributed::Vector in_dev; + LinearAlgebra::distributed::Vector out_dev; + mf_data.initialize_dof_vector(in_dev); + mf_data.initialize_dof_vector(out_dev); LinearAlgebra::ReadWriteVector rw_in(owned_set); for (unsigned int i = 0; i < in_dev.local_size(); ++i) { -- 2.39.5