]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix failing tests 11281/head
authorBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 30 Nov 2020 19:08:28 +0000 (19:08 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Mon, 30 Nov 2020 19:08:28 +0000 (19:08 +0000)
tests/cuda/matrix_free_matrix_vector_10.cu
tests/cuda/matrix_free_matrix_vector_10a.cu

index 20fc27ab3a806f0eb691479f969773863b971d28..a5523ce6eed989f047e58805ccfde8cf67c3420e 100644 (file)
@@ -122,10 +122,10 @@ test()
                  Number,
                  LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA>>
                                                                 mf(mf_data, coef_size);
-  LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> in_dev(
-    owned_set, MPI_COMM_WORLD);
-  LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> out_dev(
-    owned_set, MPI_COMM_WORLD);
+  LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> in_dev;
+  LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> out_dev;
+  mf_data.initialize_dof_vector(in_dev);
+  mf_data.initialize_dof_vector(out_dev);
 
   LinearAlgebra::ReadWriteVector<Number> rw_in(owned_set);
   for (unsigned int i = 0; i < in_dev.local_size(); ++i)
index d621ae7fe38c44947299e95995ad6960064c70cc..f2831c13275e4b44712e082d694d8e9f7c95e8ea 100644 (file)
@@ -123,12 +123,12 @@ test()
                  fe_degree,
                  Number,
                  LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA>>
-                                                                mf(mf_data, coef_size, false);
-  LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> in_dev(
-    owned_set, MPI_COMM_WORLD);
-  LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> out_dev(
-    owned_set, MPI_COMM_WORLD);
+    mf(mf_data, coef_size, false);
 
+  LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> in_dev;
+  LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> out_dev;
+  mf_data.initialize_dof_vector(in_dev);
+  mf_data.initialize_dof_vector(out_dev);
   LinearAlgebra::ReadWriteVector<Number> rw_in(owned_set);
   for (unsigned int i = 0; i < in_dev.local_size(); ++i)
     {

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.