16 #include <deal.II/lac/slepc_spectral_transformation.h> 18 #ifdef DEAL_II_WITH_SLEPC 20 # include <deal.II/lac/petsc_matrix_base.h> 21 # include <deal.II/lac/slepc_solver.h> 23 # include <petscversion.h> 28 DEAL_II_NAMESPACE_OPEN
34 const PetscErrorCode ierr = STCreate(mpi_communicator, &
st);
42 const PetscErrorCode ierr = STDestroy(&
st);
51 const PetscErrorCode ierr = STSetMatMode(
st, mode);
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)
89 const MPI_Comm & mpi_communicator,
94 PetscErrorCode ierr = STSetType(
st, const_cast<char *>(STSINVERT));
104 const double shift_parameter)
105 : shift_parameter(shift_parameter)
109 const MPI_Comm & mpi_communicator,
114 # if DEAL_II_PETSC_VERSION_LT(3, 5, 0) 115 PetscErrorCode ierr = STSetType(
st, const_cast<char *>(STFOLD));
125 "Folding transformation has been removed in SLEPc 3.5.0 and newer." 126 "You cannot use this transformation anymore."));
133 const double shift_parameter,
134 const double antishift_parameter)
135 : shift_parameter(shift_parameter)
136 , antishift_parameter(antishift_parameter)
144 PetscErrorCode ierr = STSetType(
st, const_cast<char *>(STCAYLEY));
156 DEAL_II_NAMESPACE_CLOSE
158 #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)