PETScWrappers::SolverBiCG Class Reference
[PETScWrappers]

Inheritance diagram for PETScWrappers::SolverBiCG:
Inheritance graph
[legend]

List of all members.

Classes

struct  AdditionalData

Public Member Functions

 SolverBiCG (SolverControl &cn, const MPI_Comm &mpi_communicator=PETSC_COMM_SELF, const AdditionalData &data=AdditionalData())

Protected Member Functions

virtual void set_solver_type (KSP &ksp) const

Protected Attributes

const AdditionalData additional_data

Detailed Description

An implementation of the solver interface using the PETSc BiCG solver.

Author:
Wolfgang Bangerth, 2004

Constructor & Destructor Documentation

PETScWrappers::SolverBiCG::SolverBiCG ( SolverControl cn,
const MPI_Comm &  mpi_communicator = PETSC_COMM_SELF,
const AdditionalData data = AdditionalData() 
)

Constructor. In contrast to deal.II's own solvers, there is no need to give a vector memory object. However, PETSc solvers want to have an MPI communicator context over which computations are parallelized. By default, PETSC_COMM_SELF is used here, but you can change this. Note that for single processor (non-MPI) versions, this parameter does not have any effect.

The last argument takes a structure with additional, solver dependent flags for tuning.

Note that the communicator used here must match the communicator used in the system matrix, solution, and right hand side object of the solve to be done with this solver. Otherwise, PETSc will generate hard to track down errors, see the documentation of the SolverBase class.


Member Function Documentation

virtual void PETScWrappers::SolverBiCG::set_solver_type ( KSP &  ksp  )  const [protected, virtual]

Function that takes a Krylov Subspace Solver context object, and sets the type of solver that is appropriate for this class.

Implements PETScWrappers::SolverBase.


Member Data Documentation

Store a copy of the flags for this particular solver.


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

deal.II documentation generated on Mon Nov 23 22:58:30 2009 by doxygen 1.6.1