Reference documentation for deal.II version Git a3b517947a 2019-09-22 22:52:08 -0400
SLEPcWrappers::TransformationBase Class Reference

#include <deal.II/lac/slepc_spectral_transformation.h>

Inheritance diagram for SLEPcWrappers::TransformationBase:
[legend]

## Public Member Functions

virtual ~TransformationBase ()

void set_matrix_mode (const STMatMode mode)

void set_solver (const PETScWrappers::SolverBase &solver)

## Protected Member Functions

TransformationBase (const MPI_Comm &mpi_communicator)

ST st

class SolverBase

## Detailed Description

Base class for spectral transformation classes using the SLEPc solvers which are selected based on flags passed to the spectral transformation.

SLEPcWrappers::TransformationXXX, where XXX is your favourite transformation type, can then be implemented in application codes in the following way for XXX=INVERT with the solver object eigensolver:

// Set a transformation, this one shifts the eigenspectrum by 3.142..
eigensolver.set_transformation(shift);

and later calling the solve() function as usual:

SolverControl solver_control (1000, 1e-9);
SolverArnoldi system (solver_control, mpi_communicator);
eigensolver.solve (A, B, lambda, x, size_of_spectrum);
Note
These options can also be set at the command line.

Definition at line 74 of file slepc_spectral_transformation.h.

## ◆ TransformationBase()

 SLEPcWrappers::TransformationBase::TransformationBase ( const MPI_Comm & mpi_communicator )
protected

Constructor.

Definition at line 32 of file slepc_spectral_transformation.cc.

## ◆ ~TransformationBase()

 SLEPcWrappers::TransformationBase::~TransformationBase ( )
virtual

Destructor.

Definition at line 38 of file slepc_spectral_transformation.cc.

## ◆ set_matrix_mode()

 void SLEPcWrappers::TransformationBase::set_matrix_mode ( const STMatMode mode )

Set a flag to indicate how the transformed matrices are being stored in the spectral transformations.

The possible values are given by the enumerator STMatMode in the SLEPc library http://www.grycap.upv.es/slepc/documentation/current/docs/manualpages/ST/STMatMode.html

Definition at line 49 of file slepc_spectral_transformation.cc.

## ◆ set_solver()

 void SLEPcWrappers::TransformationBase::set_solver ( const PETScWrappers::SolverBase & solver )

Set solver to be used when solving a system of linear algebraic equations inside the eigensolver.

Definition at line 56 of file slepc_spectral_transformation.cc.

## ◆ st

 ST SLEPcWrappers::TransformationBase::st
protected

SLEPc spectral transformation object.

Definition at line 110 of file slepc_spectral_transformation.h.

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