@@ -39,7 +39,7 @@ class Rs : public ::testing::Test {
3939 {0.0 , 0.0 , 0.0 , -1.0 , 2.0 }});
4040
4141 // strength mask: all 8 off-diagonals are strong
42- is_strong =
42+ is_strong_prefilled =
4343 gko::array<bool >(exec, {false , true , true , false , true , true , false ,
4444 true , true , false , true , true , false });
4545
@@ -48,7 +48,7 @@ class Rs : public ::testing::Test {
4848
4949 std::shared_ptr<gko::ReferenceExecutor> exec;
5050 std::shared_ptr<csr> A;
51- gko::array<bool > is_strong ;
51+ gko::array<bool > is_strong_prefilled ;
5252 gko::array<index_type> cf;
5353};
5454
@@ -62,20 +62,20 @@ TEST_F(Rs, ComputeSocAndRunRs)
6262 {0.0 , 0.0 , -1.0 , 2.0 , -1.0 },
6363 {0.0 , 0.0 , 0.0 , -1.0 , 2.0 }});
6464
65- gko::array<bool > is_strong (exec, 13 );
65+ gko::array<bool > is_strong_empty (exec, 13 );
6666 gko::array<index_type> lambda (exec, 5 );
6767 gko::array<index_type> cf (exec, 5 );
6868 index_type coarse{};
6969
7070 gko::kernels::reference::rs::compute_soc_and_run_rs (
71- exec, A.get (), 0.5 , is_strong , lambda, cf, coarse);
71+ exec, A.get (), 0.5 , is_strong_empty , lambda, cf, coarse);
7272
7373 // all off-diagonals are strong
7474 std::vector<bool > expected_soc{false , true , true , false , true , true , false ,
7575 true , true , false , true , true , false };
7676
7777 for (int i = 0 ; i < 13 ; ++i) {
78- ASSERT_EQ (is_strong .get_const_data ()[i], expected_soc[i]);
78+ ASSERT_EQ (is_strong_empty .get_const_data ()[i], expected_soc[i]);
7979 }
8080 // initial lambda: [1, 2, 2, 2, 1]. After greedy RS:
8181 ASSERT_EQ (cf.get_const_data ()[0 ], -1 );
@@ -95,7 +95,7 @@ TEST_F(Rs, FillCoarseAndComputeProlongRowPtrs)
9595 gko::array<index_type> coarse (exec, 2 );
9696
9797 gko::kernels::reference::rs::fill_coarse_and_compute_prolong_row_ptrs (
98- exec, cf, coarse, f2c, A.get (), is_strong , p_row_ptrs);
98+ exec, cf, coarse, f2c, A.get (), is_strong_prefilled , p_row_ptrs);
9999
100100 // C-points (1, 3) map to (0, 1)
101101 ASSERT_EQ (f2c.get_const_data ()[0 ], -1 );
@@ -120,8 +120,8 @@ TEST_F(Rs, ComputeInterpolation)
120120 P->get_row_ptrs ());
121121
122122 gko::kernels::reference::rs::compute_interpolation (
123- exec, A.get (), is_strong .get_const_data (), cf, f2c. get_const_data () ,
124- P.get ());
123+ exec, A.get (), is_strong_prefilled .get_const_data (), cf,
124+ f2c. get_const_data (), P.get ());
125125
126126 auto p_vals = P->get_const_values ();
127127 auto p_cols = P->get_const_col_idxs ();
0 commit comments