Skip to content

Commit 027d646

Browse files
committed
fix segfault
1 parent 5988d4f commit 027d646

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/test/preconditioner/jacobi_kernels.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1204,8 +1204,8 @@ TYPED_TEST(Jacobi, L1BlockJaocbiConvertsToDense)
12041204
auto mtx = gko::share(Mtx::create(this->exec, gko::dim<2>{5}, 12));
12051205
this->template init_array<index_type>(mtx->get_row_ptrs(),
12061206
{0, 3, 5, 7, 10, 12});
1207-
this->template init_array<index_type>(
1208-
mtx->get_col_idxs(), {0, 1, 4, 0, 1, 2, 3, 2, 3, 4, 0, 3, 4});
1207+
this->template init_array<index_type>(mtx->get_col_idxs(),
1208+
{0, 1, 4, 0, 1, 2, 3, 2, 3, 4, 0, 3});
12091209
this->template init_array<value_type>(
12101210
mtx->get_values(),
12111211
{2.0, -2.0, -2.0, -1.0, 4.0, 4.0, -2.0, -1.0, 4.0, -2.0, -4.0, -1.0});
@@ -1251,8 +1251,8 @@ TYPED_TEST(Jacobi, L1BlockJaocbiConvertsToDenseWithAdaptivePrecision)
12511251
auto mtx = gko::share(Mtx::create(this->exec, gko::dim<2>{5}, 12));
12521252
this->template init_array<index_type>(mtx->get_row_ptrs(),
12531253
{0, 3, 5, 7, 10, 12});
1254-
this->template init_array<index_type>(
1255-
mtx->get_col_idxs(), {0, 1, 4, 0, 1, 2, 3, 2, 3, 4, 0, 3, 4});
1254+
this->template init_array<index_type>(mtx->get_col_idxs(),
1255+
{0, 1, 4, 0, 1, 2, 3, 2, 3, 4, 0, 3});
12561256
this->template init_array<value_type>(
12571257
mtx->get_values(),
12581258
{2.0, -2.0, -2.0, -1.0, 4.0, 4.0, -2.0, -1.0, 4.0, -2.0, -4.0, -1.0});

0 commit comments

Comments
 (0)