From: Daniel Arndt Date: Fri, 24 Apr 2020 23:13:54 +0000 (-0400) Subject: Remove the last deprecations X-Git-Tag: v9.2.0-rc1~187^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9955%2Fhead;p=dealii.git Remove the last deprecations --- 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) {