18#ifdef DEAL_II_WITH_SLEPC
23# include <petscversion.h>
34 const PetscErrorCode ierr = STCreate(mpi_communicator, &
st);
42 const PetscErrorCode ierr = STDestroy(&
st);
51 const PetscErrorCode ierr = STSetMatMode(
st, mode);
58 PetscErrorCode ierr = STSetKSP(
st, solver);
65 const double shift_parameter)
66 : shift_parameter(shift_parameter)
74 PetscErrorCode ierr = STSetType(
st,
const_cast<char *
>(STSHIFT));
84 const double shift_parameter)
85 : shift_parameter(shift_parameter)
94 PetscErrorCode ierr = STSetType(
st,
const_cast<char *
>(STSINVERT));
104 const double shift_parameter)
105 : shift_parameter(shift_parameter)
118 "Folding transformation has been removed in SLEPc 3.5.0 and newer."
119 " You cannot use this transformation anymore."));
125 const double shift_parameter,
126 const double antishift_parameter)
127 : shift_parameter(shift_parameter)
128 , antishift_parameter(antishift_parameter)
136 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)