From 9e8df3b45ae78426e46bddb76f5f10698c94ecc9 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Mon, 27 Oct 2014 14:02:19 +0100 Subject: [PATCH] made argument of set_matrix_mode const. Added a reference to SLEPc with possible values. --- include/deal.II/lac/slepc_spectral_transformation.h | 6 +++++- source/lac/slepc_spectral_transformation.cc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/deal.II/lac/slepc_spectral_transformation.h b/include/deal.II/lac/slepc_spectral_transformation.h index 27c47b97f6..848b648123 100644 --- a/include/deal.II/lac/slepc_spectral_transformation.h +++ b/include/deal.II/lac/slepc_spectral_transformation.h @@ -86,8 +86,12 @@ namespace SLEPcWrappers * Set a flag to indicate how the * transformed matrices are being stored in * the spectral transformations. + * + * The possible values are given by the + * enumerator STMatMode in the SLEPc library + * http://www.grycap.upv.es/slepc/documentation/current/docs/manualpages/ST/STMatMode.html */ - void set_matrix_mode(STMatMode mode); + void set_matrix_mode(const STMatMode mode); protected: diff --git a/source/lac/slepc_spectral_transformation.cc b/source/lac/slepc_spectral_transformation.cc index 35bb7b8558..e01696234b 100644 --- a/source/lac/slepc_spectral_transformation.cc +++ b/source/lac/slepc_spectral_transformation.cc @@ -52,7 +52,7 @@ namespace SLEPcWrappers set_transformation_type(transformation_data->st); } - void TransformationBase::set_matrix_mode(STMatMode mode) + void TransformationBase::set_matrix_mode(const STMatMode mode) { int ierr = STSetMatMode(transformation_data->st,mode); AssertThrow (ierr == 0, SolverBase::ExcSLEPcError(ierr)); -- 2.39.5