Commit 53a9eecd authored by Gregor Olenik's avatar Gregor Olenik
Browse files

re-enable exporting the system matrix, rhs and initial guess

parent 9c29b393
......@@ -307,11 +307,6 @@ public:
// from this factory.
solver_gen->add_logger(logger);
// TODO refactor this to separate function
// if (get_export())
// export_system(gko::lend(gkomatrix), gko::lend(x),
// gko::lend(b));
auto b_clone = gko::clone(b);
std::shared_ptr<mtx> gkomatrix{};
if (gkomatrix_ptr == NULL) {
......@@ -327,6 +322,11 @@ public:
gkomatrix = gkomatrix_ptr->get_ptr();
}
if (get_export())
export_system(fieldName(), gko::lend(gkomatrix), gko::lend(x),
gko::lend(b));
solverPerf.initialResidual() = compute_residual(
gko::lend(gkomatrix), gko::lend(x), gko::lend(b_clone));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment