Class documentation of Concepts

Loading...
Searching...
No Matches
concepts::PETScFabric Class Referenceabstract

#include <PETScFabric.hh>

Inheritance diagram for concepts::PETScFabric:
concepts::SolverFabric< Real > concepts::OutputOperator

Public Member Functions

 PETScFabric (const Real maxeps, const std::string ksptype, const std::string pctype=std::string("none"))
 
virtual Operator< Real > * operator() (Operator< Real > &matrix)
 
virtual Operator< Real > * operator() ()=0
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

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:

  • It is always memory inefficent.
  • It may be O(n^2) slow, if Operator is not Matrix, LiCo, LiCoI or Compose
  • It may cause a segmentation fault if the fabric goes out of scope before any of the solvers created like this. Make sure this does not happen.
Author
Christoph Winkelmann, 2004

Definition at line 30 of file PETScFabric.hh.

Constructor & Destructor Documentation

◆ PETScFabric()

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 37 of file PETScFabric.hh.

◆ ~PETScFabric()

concepts::PETScFabric::~PETScFabric ( )
inline

Definition at line 56 of file PETScFabric.hh.

Member Function Documentation

◆ info()

virtual std::ostream & concepts::PETScFabric::info ( std::ostream &  os) const
inlineprotectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

Definition at line 63 of file PETScFabric.hh.

◆ operator()() [1/2]

virtual Operator< Real > * concepts::SolverFabric< Real >::operator() ( )
pure virtualinherited

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 concepts::UmfpackFabric.

◆ operator()() [2/2]

virtual Operator< Real > * concepts::PETScFabric::operator() ( Operator< Real > &  matrix)
inlinevirtual

Implements concepts::SolverFabric< Real >.

Definition at line 40 of file PETScFabric.hh.


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