From: Daniel Arndt Date: Thu, 26 Mar 2020 16:08:55 +0000 (-0400) Subject: Remove deprecated class PArpackSolver::Shift X-Git-Tag: v9.2.0-rc1~280^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9821%2Fhead;p=dealii.git Remove deprecated class PArpackSolver::Shift --- diff --git a/doc/news/changes/incompatibilities/20200404DanielArndt b/doc/news/changes/incompatibilities/20200404DanielArndt new file mode 100644 index 0000000000..ec000e17bb --- /dev/null +++ b/doc/news/changes/incompatibilities/20200404DanielArndt @@ -0,0 +1,4 @@ +Removed: The deprecated class PArpackSolver::Shift has been removed. +Use LinearOperator instead. +
+(Daniel Arndt, 2020/04/04) diff --git a/include/deal.II/lac/parpack_solver.h b/include/deal.II/lac/parpack_solver.h index a1cdf91560..f2176f646d 100644 --- a/include/deal.II/lac/parpack_solver.h +++ b/include/deal.II/lac/parpack_solver.h @@ -270,55 +270,6 @@ public: both_ends }; - /** - * Auxiliary class to represent A-sigma*B operator. - * - * @deprecated: Use LinearOperator to create a shifted operator by hand: - * - * const auto shift = linear_operator(A) - sigma * linear_operator(B); - * - */ - template - 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 A-sigma * B - */ - void - vmult(VectorType &dst, const VectorType &src) const - { - B.vmult(dst, src); - dst *= (-sigma); - A.vmult_add(dst, src); - } - - /** - * Apply A^T-sigma * B^T - */ - 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.