Skip to content

Commit

Permalink
fix segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Feb 20, 2025
1 parent 9ac5f97 commit 24ef245
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reference/test/preconditioner/jacobi_kernels.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1204,8 +1204,8 @@ TYPED_TEST(Jacobi, L1BlockJaocbiConvertsToDense)
auto mtx = gko::share(Mtx::create(this->exec, gko::dim<2>{5}, 12));
this->template init_array<index_type>(mtx->get_row_ptrs(),
{0, 3, 5, 7, 10, 12});
this->template init_array<index_type>(
mtx->get_col_idxs(), {0, 1, 4, 0, 1, 2, 3, 2, 3, 4, 0, 3, 4});
this->template init_array<index_type>(mtx->get_col_idxs(),
{0, 1, 4, 0, 1, 2, 3, 2, 3, 4, 0, 3});
this->template init_array<value_type>(
mtx->get_values(),
{2.0, -2.0, -2.0, -1.0, 4.0, 4.0, -2.0, -1.0, 4.0, -2.0, -4.0, -1.0});
Expand Down Expand Up @@ -1251,8 +1251,8 @@ TYPED_TEST(Jacobi, L1BlockJaocbiConvertsToDenseWithAdaptivePrecision)
auto mtx = gko::share(Mtx::create(this->exec, gko::dim<2>{5}, 12));
this->template init_array<index_type>(mtx->get_row_ptrs(),
{0, 3, 5, 7, 10, 12});
this->template init_array<index_type>(
mtx->get_col_idxs(), {0, 1, 4, 0, 1, 2, 3, 2, 3, 4, 0, 3, 4});
this->template init_array<index_type>(mtx->get_col_idxs(),
{0, 1, 4, 0, 1, 2, 3, 2, 3, 4, 0, 3});
this->template init_array<value_type>(
mtx->get_values(),
{2.0, -2.0, -2.0, -1.0, 4.0, 4.0, -2.0, -1.0, 4.0, -2.0, -4.0, -1.0});
Expand Down

0 comments on commit 24ef245

Please sign in to comment.