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> 22 # include <deal.II/lac/petsc_vector_base.h> 23 # include <deal.II/lac/petsc_vector.h> 28 # include <petscversion.h> 30 DEAL_II_NAMESPACE_OPEN
36 const PetscErrorCode ierr = STCreate(mpi_communicator, &
st);
44 const PetscErrorCode ierr = STDestroy(&
st);
51 const PetscErrorCode ierr = STSetMatMode(
st,mode);
66 shift_parameter (shift_parameter)
75 PetscErrorCode ierr = STSetType (
st, const_cast<char *>(STSHIFT));
87 shift_parameter (shift_parameter)
96 #if DEAL_II_PETSC_VERSION_LT(3,1,0) 97 PetscErrorCode ierr = STSetType (
st, const_cast<char *>(STSINV));
99 PetscErrorCode ierr = STSetType (
st, const_cast<char *>(STSINVERT));
112 shift_parameter (shift_parameter)
121 #if DEAL_II_PETSC_VERSION_LT(3,5,0) 122 PetscErrorCode ierr = STSetType (
st, const_cast<char *>(STFOLD));
131 ExcMessage (
"Folding transformation has been removed in SLEPc 3.5.0 and newer." 132 "You cannot use this transformation anymore."));
140 const double antishift_parameter)
142 shift_parameter (shift_parameter),
143 antishift_parameter (antishift_parameter)
153 PetscErrorCode ierr = STSetType (
st, const_cast<char *>(STCAYLEY));
165 DEAL_II_NAMESPACE_CLOSE
167 #endif // DEAL_II_WITH_SLEPC
std_cxx11::shared_ptr< SolverData > solver_data
#define AssertThrow(cond, exc)
static ::ExceptionBase & ExcMessage(std::string arg1)
#define Assert(cond, exc)
static ::ExceptionBase & ExcSLEPcError(int arg1)