We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e97e1f4 commit 4b6bf58Copy full SHA for 4b6bf58
1 file changed
applications/trilinos_application/amgcl_mpi_solver_impl.cpp
@@ -202,8 +202,8 @@ AMGCLBlockSolve(
202
auto b_begin = reinterpret_cast<const rhs_type*>(rB.Values());
203
auto x_begin = reinterpret_cast<rhs_type*>(rX.Values());
204
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);
+ auto b_range = boost::make_iterator_range(b_begin, b_begin + nb);
+ auto x_range = boost::make_iterator_range(x_begin, x_begin + nb);
207
208
std::tie(rIterationNumber, rResidual) = solve(b_range, x_range);
209
}
0 commit comments