Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Public Member Functions | Protected Member Functions | Private Attributes
concepts::PETScFabric Class Reference

Fabric class for PETSc solvers. More...

#include <PETScFabric.hh>

Inheritance diagram for concepts::PETScFabric:
Inheritance graph
[legend]
Collaboration diagram for concepts::PETScFabric:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

Fabric class for PETSc solvers.

Creates a PETScMat if Operator is not a PETScMat and a preconditioner is desired. This may have severe disadvantages:

Author:
Christoph Winkelmann, 2004

Definition at line 27 of file PETScFabric.hh.


Constructor & Destructor Documentation

concepts::PETScFabric::PETScFabric ( const Real  maxeps,
const std::string  ksptype,
const std::string  pctype = std::string("none") 
) [inline]

Constructor.

Parameters:
maxepsMaximal residual
ksptypeType of Krylov Subspace Solver
pctypeType of preconditioner

Definition at line 34 of file PETScFabric.hh.

concepts::PETScFabric::~PETScFabric ( ) [inline]

Definition at line 53 of file PETScFabric.hh.


Member Function Documentation

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]

Definition at line 26 of file solverFabric.hh.

Here is the call graph for this function:

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.

Returns:
Reference to the linear solver

Implemented in vectorial::BramblePasciakFabric, and vectorial::CGUzawaFabric.

virtual Operator<Real>* concepts::PETScFabric::operator() ( Operator< Real > &  matrix) [inline, virtual]

Definition at line 37 of file PETScFabric.hh.

Here is the call graph for this function:


Member Data Documentation

const std::string concepts::PETScFabric::ksptype_ [private]

Type of Krylov Subspace Solver.

Definition at line 68 of file PETScFabric.hh.

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.

Created auxiliary PETSc Matrices.

Definition at line 72 of file PETScFabric.hh.


The documentation for this class was generated from the following file:

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)