Skip to content

Commit 4b6bf58

Browse files
committed
[wip] [skip ci] fix unused variable warning
1 parent e97e1f4 commit 4b6bf58

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

applications/trilinos_application/amgcl_mpi_solver_impl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ AMGCLBlockSolve(
202202
auto b_begin = reinterpret_cast<const rhs_type*>(rB.Values());
203203
auto x_begin = reinterpret_cast<rhs_type*>(rX.Values());
204204

205-
auto b_range = boost::make_iterator_range(b_begin, b_begin + n / TBlockSize);
206-
auto x_range = boost::make_iterator_range(x_begin, x_begin + n / TBlockSize);
205+
auto b_range = boost::make_iterator_range(b_begin, b_begin + nb);
206+
auto x_range = boost::make_iterator_range(x_begin, x_begin + nb);
207207

208208
std::tie(rIterationNumber, rResidual) = solve(b_range, x_range);
209209
}

0 commit comments

Comments
 (0)