From: Denis Davydov Date: Tue, 21 Oct 2014 17:57:28 +0000 (+0200) Subject: Added set_matrix_mode to the SLEPcWrappers::TransformationBase class. X-Git-Tag: v8.2.0-rc1~95^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9c3ae9165e3879c5306bf4f9a33d0aa06472e06;p=dealii.git Added set_matrix_mode to the SLEPcWrappers::TransformationBase class. --- 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::