Skip to content

Commit

Permalink
Ensure logging is carried out before checking for convergence
Browse files Browse the repository at this point in the history
Fixes #329

See merge request gysela-developpers/gyselalibxx!825

--------------------------------------------
  • Loading branch information
EmilyBourne committed Dec 19, 2024
1 parent df541a9 commit d2303a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vendor/sll/include/sll/matrix_batch_ell.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,14 @@ class MatrixBatchEll : public MatrixBatch<ExecSpace>
Kokkos::deep_copy(x_view, b);
m_solver->apply(to_gko_multivector(gko_exec, b), to_gko_multivector(gko_exec, x_view));
m_solver->remove_logger(logger);
//check convergence
check_conv(batch_size(), m_tol, gko_exec, logger);
// save logger data
if (m_with_logger) {
std::fstream log_file("ell_log.txt", std::ios::out | std::ios::app);
save_logger(log_file, m_batch_matrix_ell, x_view, b, logger, m_tol);
log_file.close();
}
//check convergence
check_conv(batch_size(), m_tol, gko_exec, logger);

Kokkos::deep_copy(b, x_view);
}
Expand Down

0 comments on commit d2303a2

Please sign in to comment.