]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added set_matrix_mode to the SLEPcWrappers::TransformationBase class.
authorDenis Davydov <davydden@gmail.com>
Tue, 21 Oct 2014 17:57:28 +0000 (19:57 +0200)
committerDenis Davydov <davydden@gmail.com>
Tue, 21 Oct 2014 18:08:57 +0000 (20:08 +0200)
include/deal.II/lac/slepc_spectral_transformation.h
source/lac/slepc_spectral_transformation.cc

index 863b330d5fc3dd4b86ab47e62213817c60984ab2..27c47b97f6f62fb0124abbde8a9309e51d6adb92 100644 (file)
@@ -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;
index bc578f783c5a039ee8c376d8d84676f319ea594c..35bb7b8558fb79b1d15b8e2d08c3fb8012f109a5 100644 (file)
@@ -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::

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.