From c9c09e6e470d9f92f3c6a9917c5c91205c34937e Mon Sep 17 00:00:00 2001 From: heister Date: Wed, 13 Feb 2013 15:30:16 +0000 Subject: [PATCH] make compress() without arguments deprecated for vectors. git-svn-id: https://svn.dealii.org/trunk@28379 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/block_vector_base.h | 7 +++++-- deal.II/include/deal.II/lac/petsc_vector_base.h | 8 ++++++-- deal.II/include/deal.II/lac/trilinos_vector_base.h | 9 +++++++-- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/deal.II/include/deal.II/lac/block_vector_base.h b/deal.II/include/deal.II/lac/block_vector_base.h index 3d50e964fd..07e0a2e265 100644 --- a/deal.II/include/deal.II/lac/block_vector_base.h +++ b/deal.II/include/deal.II/lac/block_vector_base.h @@ -789,9 +789,12 @@ public: * distributed objects" for more * information. */ - void compress (::dealii::VectorOperation::values operation - =::dealii::VectorOperation::unknown); + void compress (::dealii::VectorOperation::values operation); + /** + * @deprecated: use compress(VectorOperation::values) instead. + */ + void compress () DEAL_II_DEPRECATED; /** * Access to a single block. diff --git a/deal.II/include/deal.II/lac/petsc_vector_base.h b/deal.II/include/deal.II/lac/petsc_vector_base.h index a50120b792..0588ad8c63 100644 --- a/deal.II/include/deal.II/lac/petsc_vector_base.h +++ b/deal.II/include/deal.II/lac/petsc_vector_base.h @@ -296,8 +296,12 @@ namespace PETScWrappers * See @ref GlossCompress "Compressing distributed objects" * for more information. */ - void compress (::dealii::VectorOperation::values operation - =::dealii::VectorOperation::unknown); + void compress (::dealii::VectorOperation::values operation); + + /** + * @deprecated: use compress(VectorOperation::values) instead. + */ + void compress () DEAL_II_DEPRECATED; /** * Set all components of the vector to diff --git a/deal.II/include/deal.II/lac/trilinos_vector_base.h b/deal.II/include/deal.II/lac/trilinos_vector_base.h index b71653b724..f29f5745f5 100644 --- a/deal.II/include/deal.II/lac/trilinos_vector_base.h +++ b/deal.II/include/deal.II/lac/trilinos_vector_base.h @@ -345,8 +345,13 @@ namespace TrilinosWrappers * See @ref GlossCompress "Compressing distributed objects" * for more information. */ - void compress (::dealii::VectorOperation::values operation - =::dealii::VectorOperation::unknown); + void compress (::dealii::VectorOperation::values operation); + + /** + * @deprecated: Use the compress(VectorOperation::values) function + * above instead. + */ + void compress() DEAL_II_DEPRECATED; /** * @deprecated Use compress(dealii::VectorOperation::values) instead. -- 2.39.5