From: David Wells Date: Tue, 26 May 2020 19:03:53 +0000 (-0400) Subject: Deprecate some PETSc things not available in other classes X-Git-Tag: v9.3.0-rc1~1528^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10398%2Fhead;p=dealii.git Deprecate some PETSc things not available in other classes --- 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;