Hi all,
i'm trying to solve a linear problem (time-dependant) using PETSc as linear_algebra_backend
and the the classes LinearVariationalProblem and LinearVariationalSolver in this manner
LinearVariationalProblem Problem1(a, L, u, bcs);
LinearVariationalSolver Solver1(Problem1);
Solver1.parameters["linear_solver"] = "gmres";
The linear system (by default) is solved using PETSc Krylov solver
.
I would like to know, in particular, how to change the absolute and relative tolerance of krylov solver, or in more global sense, how to change the parameters of the krylov solver.
Many thanks in advance!