← Back to team overview

dolfin team mailing list archive

Parametrization of solver

 

Parameters for the Krylov solvers are now set by the parameter system.

Example usage, affecting only PDE and its solvers:

  PDE pde(a, L, mesh, bc);
  pde.set("Krylov relative tolerance", 1e-14);
  Function U = pde.solve();

Alternative usage, affecting all Krylov solvers:

  PDE pde(a, L, mesh, bc);
  set("Krylov relative tolerance", 1e-14);
  Function U = pde.solve();

/Anders