]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecate ParpackSolver::Shift
authorMatthias Maier <tamiko@43-1.org>
Sun, 2 Jul 2017 17:48:17 +0000 (12:48 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 2 Jul 2017 17:48:17 +0000 (12:48 -0500)
include/deal.II/lac/parpack_solver.h

index 2280f686c82a4c5480da10a2be8934e7988b88ca..fcc4b449caf4ccd52540866e9f386585e5fb602b 100644 (file)
@@ -203,6 +203,11 @@ public:
 
   /**
    * Auxiliary class to represent <code>A-sigma*B</code> operator.
+   *
+   * @deprecated: Use LinearOperator to create a shifted operator by hand:
+   * <code>
+   *   const auto shift = linear_operator(A) - sigma * linear_operator(B);
+   * </code>
    */
   template <typename MatrixType>
   class Shift : public dealii::Subscriptor
@@ -245,7 +250,8 @@ public:
     const MatrixType &A;
     const MatrixType &B;
     const double sigma;
-  };
+
+  } DEAL_II_DEPRECATED;
 
   /**
    * Standardized data struct to pipe additional data to the solver, should it

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.