From bec17b32f28a086caa4767ee3af8ba4b2f44538a Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 24 Apr 2020 19:13:54 -0400 Subject: [PATCH] Remove the last deprecations --- .../incompatibilities/20200424DanielArndt-1 | 4 ++++ include/deal.II/base/numbers.h | 17 ----------------- .../differentiation/ad/ad_number_traits.h | 16 ---------------- include/deal.II/lac/slepc_solver.h | 7 ------- source/lac/slepc_solver.cc | 13 ------------- 5 files changed, 4 insertions(+), 53 deletions(-) create mode 100644 doc/news/changes/incompatibilities/20200424DanielArndt-1 diff --git a/doc/news/changes/incompatibilities/20200424DanielArndt-1 b/doc/news/changes/incompatibilities/20200424DanielArndt-1 new file mode 100644 index 0000000000..d6262e38fb --- /dev/null +++ b/doc/news/changes/incompatibilities/20200424DanielArndt-1 @@ -0,0 +1,4 @@ +Removed: The deprecated functions numbers::is_nan() and +SLEPcWrappers::SolverBase::set_initial_vector() have been removed. +
+(Daniel Arndt, 2020/04/24) diff --git a/include/deal.II/base/numbers.h b/include/deal.II/base/numbers.h index 31b8c3d6c5..88dfb1e9c0 100644 --- a/include/deal.II/base/numbers.h +++ b/include/deal.II/base/numbers.h @@ -272,23 +272,6 @@ namespace numbers struct is_cuda_compatible, void> : std::false_type {}; - /** - * Check whether a value is not a number. - * - * This function uses either std::isnan, isnan, or - * _isnan, whichever is available on the system and returns the - * result. - * - * If none of the functions detecting NaN is available, this function - * returns false. - * - * @deprecated This function has been deprecated in favor of the C++11 - * function std::isnan. - */ - DEAL_II_DEPRECATED - bool - is_nan(const double x); - /** * Return @p true if the given value is a finite floating point number, i.e. * is neither plus or minus infinity nor NaN (not a number). diff --git a/include/deal.II/differentiation/ad/ad_number_traits.h b/include/deal.II/differentiation/ad/ad_number_traits.h index eb0aa18250..b8a272ecb3 100644 --- a/include/deal.II/differentiation/ad/ad_number_traits.h +++ b/include/deal.II/differentiation/ad/ad_number_traits.h @@ -1431,22 +1431,6 @@ namespace Differentiation #endif // DOXYGEN - -namespace numbers -{ - template - bool - is_nan(const typename std::enable_if< - Differentiation::AD::is_ad_number::value, - ADNumberType>::type &x) - { - return is_nan( - Differentiation::AD::ADNumberTraits::get_value(x)); - } - -} // namespace numbers - - DEAL_II_NAMESPACE_CLOSE #endif diff --git a/include/deal.II/lac/slepc_solver.h b/include/deal.II/lac/slepc_solver.h index b88fe49834..5fd5337054 100644 --- a/include/deal.II/lac/slepc_solver.h +++ b/include/deal.II/lac/slepc_solver.h @@ -210,13 +210,6 @@ namespace SLEPcWrappers std::vector & imag_eigenvectors, const unsigned int n_eigenpairs = 1); - /** - * Set the initial vector for the solver. - */ - DEAL_II_DEPRECATED - void - set_initial_vector(const PETScWrappers::VectorBase &this_initial_vector); - /** * Set the initial vector space for the solver. * diff --git a/source/lac/slepc_solver.cc b/source/lac/slepc_solver.cc index d52547d93c..b152cfae59 100644 --- a/source/lac/slepc_solver.cc +++ b/source/lac/slepc_solver.cc @@ -112,19 +112,6 @@ namespace SLEPcWrappers # endif } - void - SolverBase::set_initial_vector( - const PETScWrappers::VectorBase &this_initial_vector) - { - Assert(this_initial_vector.l2_norm() > 0.0, - ExcMessage("Initial vector should be nonzero.")); - - Vec vec = this_initial_vector; - const PetscErrorCode ierr = EPSSetInitialSpace(eps, 1, &vec); - - AssertThrow(ierr == 0, ExcSLEPcError(ierr)); - } - void SolverBase::set_target_eigenvalue(const PetscScalar &this_target) { -- 2.39.5