16 #include <deal.II/lac/slepc_spectral_transformation.h> 18 #ifdef DEAL_II_WITH_SLEPC 20 # include <deal.II/lac/slepc_solver.h> 21 # include <deal.II/lac/petsc_matrix_base.h> 26 # include <petscversion.h> 28 DEAL_II_NAMESPACE_OPEN
34 const PetscErrorCode ierr = STCreate(mpi_communicator, &
st);
42 const PetscErrorCode ierr = STDestroy(&
st);
50 const PetscErrorCode ierr = STSetMatMode(
st,mode);
65 shift_parameter (shift_parameter)
74 PetscErrorCode ierr = STSetType (
st, const_cast<char *>(STSHIFT));
86 shift_parameter (shift_parameter)
95 PetscErrorCode ierr = STSetType (
st, const_cast<char *>(STSINVERT));
107 shift_parameter (shift_parameter)
116 #if DEAL_II_PETSC_VERSION_LT(3,5,0) 117 PetscErrorCode ierr = STSetType (
st, const_cast<char *>(STFOLD));
126 ExcMessage (
"Folding transformation has been removed in SLEPc 3.5.0 and newer." 127 "You cannot use this transformation anymore."));
135 const double antishift_parameter)
137 shift_parameter (shift_parameter),
138 antishift_parameter (antishift_parameter)
148 PetscErrorCode ierr = STSetType (
st, const_cast<char *>(STCAYLEY));
160 DEAL_II_NAMESPACE_CLOSE
162 #endif // DEAL_II_WITH_SLEPC
#define AssertNothrow(cond, exc)
#define AssertThrow(cond, exc)
static ::ExceptionBase & ExcMessage(std::string arg1)
std::unique_ptr< SolverData > solver_data
#define Assert(cond, exc)
static ::ExceptionBase & ExcSLEPcError(int arg1)