From 6523db3e59e20d1f76588b684c9a341032b1c6f5 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 26 Mar 2020 12:08:55 -0400 Subject: [PATCH] Remove deprecated class PArpackSolver::Shift --- .../incompatibilities/20200404DanielArndt | 4 ++ include/deal.II/lac/parpack_solver.h | 49 ------------------- 2 files changed, 4 insertions(+), 49 deletions(-) create mode 100644 doc/news/changes/incompatibilities/20200404DanielArndt 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. -- 2.39.5