From 337e74870d33301a422492a6cb9ed4c1f6c1be3d Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Wed, 13 May 2020 02:00:50 +0000 Subject: [PATCH] Fix test after some sadd and equ functions have been removed --- tests/cuda/parallel_vector_11.cu | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/cuda/parallel_vector_11.cu b/tests/cuda/parallel_vector_11.cu index 20997bf51f..a46a73426e 100644 --- a/tests/cuda/parallel_vector_11.cu +++ b/tests/cuda/parallel_vector_11.cu @@ -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) -- 2.39.5