]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix test after some sadd and equ functions have been removed
authorBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 13 May 2020 02:00:50 +0000 (02:00 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Wed, 13 May 2020 02:00:50 +0000 (02:00 +0000)
tests/cuda/parallel_vector_11.cu

index 20997bf51f007bafcfd97082c5e3531a676cea6e..a46a73426e26b5ce9090e66b957e0d108f841382 100644 (file)
@@ -131,7 +131,8 @@ test()
 
   if (myid == 0)
     deallog << "Check sadd (factor, factor, vector, factor, vector): ";
-  y.sadd(2., 3., v, 2., w);
+  y.sadd(2., 3., v);
+  y.add(2., w);
   y_rw.import(y, VectorOperation::insert);
   for (int i = 0; i < actual_local_size; ++i)
     {
@@ -144,7 +145,8 @@ test()
   if (myid == 0)
     deallog
       << "Check sadd (factor, factor, vector, factor, vector, factor, vector): ";
-  y.sadd(-1., 1., v, 2., w);
+  y.sadd(-1., 1., v);
+  y.add(2., w);
   y.add(2., x);
   y_rw.import(y, VectorOperation::insert);
   for (int i = 0; i < actual_local_size; ++i)
@@ -202,7 +204,8 @@ test()
 
   if (myid == 0)
     deallog << "Check equ (factor, vector, factor, vector): ";
-  y.equ(10., v, -2., w);
+  y.equ(10., v);
+  y.add(-2., w);
   y_rw.import(y, VectorOperation::insert);
   for (int i = 0; i < actual_local_size; ++i)
     AssertThrow(y_rw.local_element(i) == 6. * (i + my_start) - 2000,
@@ -212,7 +215,8 @@ test()
 
   if (myid == 0)
     deallog << "Check equ (factor, vector, factor, vector, factor, vector): ";
-  y.equ(10., v, -2., w);
+  y.equ(10., v);
+  y.add(-2., w);
   y.add(3., x);
   y_rw.import(y, VectorOperation::insert);
   for (int i = 0; i < actual_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.