]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Deprecate some PETSc things not available in other classes 10398/head
authorDavid Wells <drwells@email.unc.edu>
Tue, 26 May 2020 19:03:53 +0000 (15:03 -0400)
committerDavid Wells <drwells@email.unc.edu>
Thu, 28 May 2020 00:19:00 +0000 (20:19 -0400)
include/deal.II/lac/petsc_vector_base.h

index 7b32322f2e89e84e8a6758425343524f97c131e2..d9aa4b1aeb9024eb29535a8d187d790cc2288d5d 100644 (file)
@@ -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<size_type> &  indices,
         const std::vector<PetscScalar> &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;
 

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.