From: Bruno Turcksin Date: Mon, 30 Nov 2020 19:08:28 +0000 (+0000) Subject: Fix failing tests X-Git-Tag: v9.3.0-rc1~833^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a5a613c724f12ea761dfbb65aa489c20cace0a7;p=dealii.git Fix failing tests --- 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) {