]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove deprecated class PArpackSolver::Shift 9821/head
authorDaniel Arndt <arndtd@ornl.gov>
Thu, 26 Mar 2020 16:08:55 +0000 (12:08 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Sun, 5 Apr 2020 01:50:11 +0000 (21:50 -0400)
doc/news/changes/incompatibilities/20200404DanielArndt [new file with mode: 0644]
include/deal.II/lac/parpack_solver.h

diff --git a/doc/news/changes/incompatibilities/20200404DanielArndt b/doc/news/changes/incompatibilities/20200404DanielArndt
new file mode 100644 (file)
index 0000000..ec000e1
--- /dev/null
@@ -0,0 +1,4 @@
+Removed: The deprecated class PArpackSolver::Shift has been removed.
+Use LinearOperator instead.
+<br>
+(Daniel Arndt, 2020/04/04)
index a1cdf9156052bf3edaa2e641ac2c08461bb9b4e1..f2176f646d978950b4d353a8f26883d5e00b2f68 100644 (file)
@@ -270,55 +270,6 @@ public:
     both_ends
   };
 
-  /**
-   * 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 DEAL_II_DEPRECATED Shift : public dealii::Subscriptor
-  {
-  public:
-    /**
-     * Constructor.
-     */
-    Shift(const MatrixType &A, const MatrixType &B, const double sigma)
-      : A(A)
-      , B(B)
-      , sigma(sigma)
-    {}
-
-    /**
-     * Apply <code>A-sigma * B</code>
-     */
-    void
-    vmult(VectorType &dst, const VectorType &src) const
-    {
-      B.vmult(dst, src);
-      dst *= (-sigma);
-      A.vmult_add(dst, src);
-    }
-
-    /**
-     * Apply <code>A^T-sigma * B^T</code>
-     */
-    void
-    Tvmult(VectorType &dst, const VectorType &src) const
-    {
-      B.Tvmult(dst, src);
-      dst *= (-sigma);
-      A.Tvmult_add(dst, src);
-    }
-
-  private:
-    const MatrixType &A;
-    const MatrixType &B;
-    const double      sigma;
-  };
-
   /**
    * Standardized data struct to pipe additional data to the solver, should it
    * be needed.

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.