From: Denis Davydov Date: Mon, 27 Oct 2014 13:02:19 +0000 (+0100) Subject: made argument of set_matrix_mode const. X-Git-Tag: v8.2.0-rc1~95^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e8df3b45ae78426e46bddb76f5f10698c94ecc9;p=dealii.git made argument of set_matrix_mode const. Added a reference to SLEPc with possible values. --- 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));