]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove the last deprecations 9955/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 24 Apr 2020 23:13:54 +0000 (19:13 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 24 Apr 2020 23:20:14 +0000 (19:20 -0400)
doc/news/changes/incompatibilities/20200424DanielArndt-1 [new file with mode: 0644]
include/deal.II/base/numbers.h
include/deal.II/differentiation/ad/ad_number_traits.h
include/deal.II/lac/slepc_solver.h
source/lac/slepc_solver.cc

diff --git a/doc/news/changes/incompatibilities/20200424DanielArndt-1 b/doc/news/changes/incompatibilities/20200424DanielArndt-1
new file mode 100644 (file)
index 0000000..d6262e3
--- /dev/null
@@ -0,0 +1,4 @@
+Removed: The deprecated functions numbers::is_nan() and
+SLEPcWrappers::SolverBase::set_initial_vector() have been removed.
+<br>
+(Daniel Arndt, 2020/04/24)
index 31b8c3d6c594e8f0e947c63e45cd027189e7ce7b..88dfb1e9c0b037c6256b4f03f662fb2993b56a30 100644 (file)
@@ -272,23 +272,6 @@ namespace numbers
   struct is_cuda_compatible<std::complex<Number>, void> : std::false_type
   {};
 
-  /**
-   * Check whether a value is not a number.
-   *
-   * This function uses either <code>std::isnan</code>, <code>isnan</code>, or
-   * <code>_isnan</code>, 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 <code>std::isnan</code>.
-   */
-  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).
index eb0aa18250a5e0f04f776253b024a91210ab1f00..b8a272ecb3df6e36ed10729d2fb07d3ff5e2f054 100644 (file)
@@ -1431,22 +1431,6 @@ namespace Differentiation
 
 #endif // DOXYGEN
 
-
-namespace numbers
-{
-  template <typename ADNumberType>
-  bool
-  is_nan(const typename std::enable_if<
-         Differentiation::AD::is_ad_number<ADNumberType>::value,
-         ADNumberType>::type &x)
-  {
-    return is_nan(
-      Differentiation::AD::ADNumberTraits<ADNumberType>::get_value(x));
-  }
-
-} // namespace numbers
-
-
 DEAL_II_NAMESPACE_CLOSE
 
 #endif
index b88fe498349d9aaadb01e078ad4e6d53481f921a..5fd5337054efeff02190851339fc69b9c5177cd7 100644 (file)
@@ -210,13 +210,6 @@ namespace SLEPcWrappers
           std::vector<OutputVector> &      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.
      *
index d52547d93c6c6324a909a98396a7b0e40603dff9..b152cfae59aae86ea87adf2ffc04bea31ba5c273 100644 (file)
@@ -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)
   {

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.