From a9c3ae9165e3879c5306bf4f9a33d0aa06472e06 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 21 Oct 2014 19:57:28 +0200 Subject: [PATCH] Added set_matrix_mode to the SLEPcWrappers::TransformationBase class. --- include/deal.II/lac/slepc_spectral_transformation.h | 7 +++++++ source/lac/slepc_spectral_transformation.cc | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/include/deal.II/lac/slepc_spectral_transformation.h b/include/deal.II/lac/slepc_spectral_transformation.h index 863b330d5f..27c47b97f6 100644 --- a/include/deal.II/lac/slepc_spectral_transformation.h +++ b/include/deal.II/lac/slepc_spectral_transformation.h @@ -82,6 +82,13 @@ namespace SLEPcWrappers */ void set_context (EPS &eps); + /** + * Set a flag to indicate how the + * transformed matrices are being stored in + * the spectral transformations. + */ + void set_matrix_mode(STMatMode mode); + protected: virtual void set_transformation_type (ST &st) const = 0; diff --git a/source/lac/slepc_spectral_transformation.cc b/source/lac/slepc_spectral_transformation.cc index bc578f783c..35bb7b8558 100644 --- a/source/lac/slepc_spectral_transformation.cc +++ b/source/lac/slepc_spectral_transformation.cc @@ -52,6 +52,12 @@ namespace SLEPcWrappers set_transformation_type(transformation_data->st); } + void TransformationBase::set_matrix_mode(STMatMode mode) + { + int ierr = STSetMatMode(transformation_data->st,mode); + AssertThrow (ierr == 0, SolverBase::ExcSLEPcError(ierr)); + } + /* ------------------- TransformationShift --------------------- */ TransformationShift::AdditionalData:: -- 2.39.5