PETScWrappers::SolverBase::SolverData Struct Reference

List of all members.

Public Member Functions

 ~SolverData ()

Public Attributes

KSP ksp
PC pc


Detailed Description

A structure that contains the PETSc solver and preconditioner objects. This object is preserved between subsequent calls to the solver if the same preconditioner is used as in the previous solver step. This may save some computation time, if setting up a preconditioner is expensive, such as in the case of an ILU for example.

The actual declaration of this class is complicated by the fact that PETSc changed its solver interface completely and incompatibly between versions 2.1.6 and 2.2.0 :-(

Objects of this type are explicitly created, but are destroyed when the surrounding solver object goes out of scope, or when we assign a new value to the pointer to this object. The respective *Destroy functions are therefore written into the destructor of this object, even though the object does not have a constructor.


Constructor & Destructor Documentation

PETScWrappers::SolverBase::SolverData::~SolverData (  ) 

Destructor


Member Data Documentation

Objects for Krylov subspace solvers and preconditioners.


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

deal.II documentation generated on Sat Aug 15 16:52:44 2009 by doxygen 1.5.9