From 20a81f91beae2d022acebc833c1bca2321c67155 Mon Sep 17 00:00:00 2001 From: David Wells Date: Tue, 26 May 2020 15:03:53 -0400 Subject: [PATCH] Deprecate some PETSc things not available in other classes --- include/deal.II/lac/petsc_vector_base.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/deal.II/lac/petsc_vector_base.h b/include/deal.II/lac/petsc_vector_base.h index 7b32322f2e..d9aa4b1aeb 100644 --- a/include/deal.II/lac/petsc_vector_base.h +++ b/include/deal.II/lac/petsc_vector_base.h @@ -434,7 +434,10 @@ namespace PETScWrappers * vector, this function allows to set a whole set of elements at once. * The indices of the elements to be set are stated in the first argument, * the corresponding values in the second. + * + * @deprecated Use import() instead. */ + DEAL_II_DEPRECATED void set(const std::vector & indices, const std::vector &values); @@ -592,13 +595,23 @@ namespace PETScWrappers /** * Return the value of the vector element with the largest negative value. + * + * @deprecated This function has been deprecated to improve compatibility + * with other classes inheriting from VectorSpaceVector. If you need to + * use this functionality then use the PETSc function VecMin instead. */ + DEAL_II_DEPRECATED real_type min() const; /** * Return the value of the vector element with the largest positive value. + * + * @deprecated This function has been deprecated to improve compatibility + * with other classes inheriting from VectorSpaceVector. If you need to + * use this functionality then use the PETSc function VecMax instead. */ + DEAL_II_DEPRECATED real_type max() const; @@ -614,7 +627,11 @@ namespace PETScWrappers * Return @p true if the vector has no negative entries, i.e. all entries * are zero or positive. This function is used, for example, to check * whether refinement indicators are really all positive (or zero). + * + * @deprecated This function has been deprecated to improve compatibility + * with other classes inheriting from VectorSpaceVector. */ + DEAL_II_DEPRECATED bool is_non_negative() const; -- 2.39.5