Fabric class for PETSc solvers.
More...
#include <PETScFabric.hh>


Public Member Functions | |
| virtual Operator< Real > * | operator() (Operator< Real > &matrix) |
| virtual Operator< Real > * | operator() (SparseMatrix< Real > &matrix) |
| virtual Operator< Real > * | operator() (Operator< Real > &matrix)=0 |
Creates a linear solver from matrix. | |
| PETScFabric (const Real maxeps, const std::string ksptype, const std::string pctype=std::string("none")) | |
| Constructor. | |
| ~PETScFabric () | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| const std::string | ksptype_ |
| Type of Krylov Subspace Solver. | |
| const Real | maxeps_ |
| Maximal residual. | |
| const std::string | pctype_ |
| Type of preconditioner. | |
| std::list< concepts::PETScMat * > | petscmat_ |
| Created auxiliary PETSc Matrices. | |
Fabric class for PETSc solvers.
Creates a PETScMat if Operator is not a PETScMat and a preconditioner is desired. This may have severe disadvantages:
Definition at line 27 of file PETScFabric.hh.
| concepts::PETScFabric::PETScFabric | ( | const Real | maxeps, |
| const std::string | ksptype, | ||
| const std::string | pctype = std::string("none") |
||
| ) | [inline] |
Constructor.
| maxeps | Maximal residual |
| ksptype | Type of Krylov Subspace Solver |
| pctype | Type of preconditioner |
Definition at line 34 of file PETScFabric.hh.
| concepts::PETScFabric::~PETScFabric | ( | ) | [inline] |
Definition at line 53 of file PETScFabric.hh.
| virtual std::ostream& concepts::PETScFabric::info | ( | std::ostream & | os | ) | const [inline, protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Definition at line 60 of file PETScFabric.hh.
| virtual Operator<Real >* concepts::SolverFabric< Real >::operator() | ( | SparseMatrix< Real > & | matrix | ) | [inline, virtual, inherited] |
| virtual Operator<Real >* concepts::SolverFabric< Real >::operator() | ( | Operator< Real > & | matrix | ) | [pure virtual, inherited] |
Creates a linear solver from matrix.
The caller is responsible for the deletion of the delivered object.
Implemented in vectorial::BramblePasciakFabric, and vectorial::CGUzawaFabric.
const std::string concepts::PETScFabric::ksptype_ [private] |
Type of Krylov Subspace Solver.
Definition at line 68 of file PETScFabric.hh.
const Real concepts::PETScFabric::maxeps_ [private] |
Maximal residual.
Definition at line 66 of file PETScFabric.hh.
const std::string concepts::PETScFabric::pctype_ [private] |
Type of preconditioner.
Definition at line 70 of file PETScFabric.hh.
std::list<concepts::PETScMat*> concepts::PETScFabric::petscmat_ [private] |
Created auxiliary PETSc Matrices.
Definition at line 72 of file PETScFabric.hh.