Bases: dolfin.cpp.la.GenericLinearSolver, dolfin.cpp.la.PETScObject
This class implements Krylov methods for linear systems of the form Ax = b. It is a wrapper for the Krylov solvers of PETSc.
Overloaded versions
PETScKrylovSolver(“default”, “default”)
Create Krylov solver for a particular method and names preconditioner
PETScKrylovSolver(method, preconditioner)
Create Krylov solver for a particular method and PETScPreconditioner
PETScKrylovSolver(method, preconditioner)
Create Krylov solver for a particular method and PETScPreconditioner (shared_ptr version)
PETScKrylovSolver(method, preconditioner)
Create Krylov solver for a particular method and PETScPreconditioner
PETScKrylovSolver(method, preconditioner)
Create Krylov solver for a particular method and PETScPreconditioner (shared_ptr version)
PETScKrylovSolver(ksp)
Create solver wrapper of a PETSc KSP object
Default parameter values
Get operator (matrix)
Returns the prefix used by PETSc when searching the options database
Return a list of available solver methods
Return a list of available preconditioners
Sets the prefix used by PETSc when searching the options database
Reuse preconditioner if true, otherwise do not, even if matrix operator changes (by default preconditioner is re-built if the matrix changes)
Overloaded versions
solve(x, b)
Solve linear system Ax = b and return number of iterations
solve(x, b)
Solve linear system Ax = b and return number of iterations
solve(A, x, b)
Solve linear system Ax = b and return number of iterations
The membership flag