17#ifdef DEAL_II_WITH_SLEPC
22# include <petscversion.h>
33 const PetscErrorCode ierr = STCreate(mpi_communicator, &
st);
41 const PetscErrorCode ierr = STDestroy(&
st);
50 const PetscErrorCode ierr = STSetMatMode(
st, mode);
57 PetscErrorCode ierr = STSetKSP(
st, solver);
64 const double shift_parameter)
65 : shift_parameter(shift_parameter)
73 PetscErrorCode ierr = STSetType(
st,
const_cast<char *
>(STSHIFT));
83 const double shift_parameter)
84 : shift_parameter(shift_parameter)
93 PetscErrorCode ierr = STSetType(
st,
const_cast<char *
>(STSINVERT));
103 const double shift_parameter)
104 : shift_parameter(shift_parameter)
117 "Folding transformation has been removed in SLEPc 3.5.0 and newer."
118 " You cannot use this transformation anymore."));
124 const double shift_parameter,
125 const double antishift_parameter)
126 : shift_parameter(shift_parameter)
127 , antishift_parameter(antishift_parameter)
135 PetscErrorCode ierr = STSetType(
st,
const_cast<char *
>(STCAYLEY));
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcSLEPcError(int arg1)
#define Assert(cond, exc)
#define AssertNothrow(cond, exc)
static ::ExceptionBase & ExcMessage(std::string arg1)
#define AssertThrow(cond, exc)