Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SLEPcWrappers::SolverPower Class Reference

#include <slepc_solver.h>

Inheritance diagram for SLEPcWrappers::SolverPower:
[legend]

Classes

struct  AdditionalData
 

Public Member Functions

 SolverPower (SolverControl &cn, const MPI_Comm &mpi_communicator=PETSC_COMM_SELF, const AdditionalData &data=AdditionalData())
 
- Public Member Functions inherited from SLEPcWrappers::SolverBase
 SolverBase (SolverControl &cn, const MPI_Comm &mpi_communicator)
 
virtual ~SolverBase ()
 
template<typename OutputVector >
void solve (const PETScWrappers::MatrixBase &A, std::vector< PetscScalar > &eigenvalues, std::vector< OutputVector > &eigenvectors, const unsigned int n_eigenpairs=1)
 
template<typename OutputVector >
void solve (const PETScWrappers::MatrixBase &A, const PETScWrappers::MatrixBase &B, std::vector< PetscScalar > &eigenvalues, std::vector< OutputVector > &eigenvectors, const unsigned int n_eigenpairs=1)
 
template<typename OutputVector >
void solve (const PETScWrappers::MatrixBase &A, const PETScWrappers::MatrixBase &B, std::vector< double > &real_eigenvalues, std::vector< double > &imag_eigenvalues, std::vector< OutputVector > &real_eigenvectors, std::vector< OutputVector > &imag_eigenvectors, const unsigned int n_eigenpairs=1)
 
void set_initial_vector (const PETScWrappers::VectorBase &this_initial_vector)
 
void set_transformation (SLEPcWrappers::TransformationBase &this_transformation)
 
void set_target_eigenvalue (const PetscScalar &this_target)
 
void set_which_eigenpairs (EPSWhich set_which)
 
void set_problem_type (EPSProblemType set_problem)
 
void get_solver_state (const SolverControl::State state)
 
 DeclException0 (ExcSLEPcWrappersUsageError)
 
 DeclException1 (ExcSLEPcError, int,<< " An error with error number "<< arg1<< " occurred while calling a SLEPc function")
 
 DeclException2 (ExcSLEPcEigenvectorConvergenceMismatchError, int, int,<< " The number of converged eigenvectors is "<< arg1<< " but "<< arg2<< " were requested. ")
 
SolverControlcontrol () const
 

Protected Member Functions

virtual void set_solver_type (EPS &eps) const
 
- Protected Member Functions inherited from SLEPcWrappers::SolverBase
void reset ()
 
EPS * get_eps ()
 
void solve (const unsigned int n_eigenpairs, unsigned int *n_converged)
 
void get_eigenpair (const unsigned int index, PetscScalar &eigenvalues, PETScWrappers::VectorBase &eigenvectors)
 
void get_eigenpair (const unsigned int index, double &real_eigenvalues, double &imag_eigenvalues, PETScWrappers::VectorBase &real_eigenvectors, PETScWrappers::VectorBase &imag_eigenvectors)
 
void set_matrices (const PETScWrappers::MatrixBase &A)
 
void set_matrices (const PETScWrappers::MatrixBase &A, const PETScWrappers::MatrixBase &B)
 

Protected Attributes

const AdditionalData additional_data
 
- Protected Attributes inherited from SLEPcWrappers::SolverBase
SolverControlsolver_control
 
const MPI_Comm mpi_communicator
 
PetscScalar target_eigenvalue
 
EPSWhich set_which
 
EPSProblemType set_problem
 

Detailed Description

An implementation of the solver interface using the SLEPc Power solver. Usage: Largest values of spectrum only, all problem types, complex.

Author
Toby D. Young 2010

Definition at line 579 of file slepc_solver.h.

Constructor & Destructor Documentation

SLEPcWrappers::SolverPower::SolverPower ( SolverControl cn,
const MPI_Comm &  mpi_communicator = PETSC_COMM_SELF,
const AdditionalData data = AdditionalData() 
)

SLEPc solvers will want to have an MPI communicator context over which computations are parallelized. By default, this carries the same behaviour has the PETScWrappers, but you can change that.

Member Function Documentation

virtual void SLEPcWrappers::SolverPower::set_solver_type ( EPS &  eps) const
protectedvirtual

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

Implements SLEPcWrappers::SolverBase.

Member Data Documentation

const AdditionalData SLEPcWrappers::SolverPower::additional_data
protected

Store a copy of the flags for this particular solver.

Definition at line 604 of file slepc_solver.h.


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