From 3fb4832dda743399085f0cc97cff55f4e1cc455c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20K=C3=B6cher?= Date: Fri, 3 Feb 2017 12:52:30 +0100 Subject: [PATCH] deprecates static support_distributed_data member of vector declarations --- include/deal.II/lac/block_vector_base.h | 5 ++++- include/deal.II/lac/la_parallel_vector.h | 5 ++++- include/deal.II/lac/petsc_parallel_vector.h | 5 ++++- include/deal.II/lac/petsc_vector.h | 5 ++++- include/deal.II/lac/trilinos_vector.h | 10 ++++++++-- include/deal.II/lac/vector.h | 5 ++++- 6 files changed, 28 insertions(+), 7 deletions(-) diff --git a/include/deal.II/lac/block_vector_base.h b/include/deal.II/lac/block_vector_base.h index 01d47e2257..a598fbf437 100644 --- a/include/deal.II/lac/block_vector_base.h +++ b/include/deal.II/lac/block_vector_base.h @@ -569,8 +569,11 @@ public: * * For the current class, the variable equals the value declared for the * type of the individual blocks. + * + * @deprecated instead of using this variable, please use the type trait value + * is_serial_vector< VectorType >::value */ - static const bool supports_distributed_data = BlockType::supports_distributed_data; + static const bool supports_distributed_data DEAL_II_DEPRECATED = BlockType::supports_distributed_data; /** * Default constructor. diff --git a/include/deal.II/lac/la_parallel_vector.h b/include/deal.II/lac/la_parallel_vector.h index 1dce986a11..3eade6c159 100644 --- a/include/deal.II/lac/la_parallel_vector.h +++ b/include/deal.II/lac/la_parallel_vector.h @@ -196,8 +196,11 @@ namespace LinearAlgebra * * For the current class, the variable equals true, since it does * support parallel data storage. + * + * @deprecated instead of using this variable, please use the type trait + * value is_serial_vector< VectorType >::value */ - static const bool supports_distributed_data = true; + static const bool supports_distributed_data DEAL_II_DEPRECATED = true; /** * @name 1: Basic Object-handling diff --git a/include/deal.II/lac/petsc_parallel_vector.h b/include/deal.II/lac/petsc_parallel_vector.h index df36bb05d7..ab83b387bc 100644 --- a/include/deal.II/lac/petsc_parallel_vector.h +++ b/include/deal.II/lac/petsc_parallel_vector.h @@ -172,8 +172,11 @@ namespace PETScWrappers * * For the current class, the variable equals true, since it does * support parallel data storage. + * + * @deprecated instead of using this variable, please use the type trait + * value is_serial_vector< VectorType >::value */ - static const bool supports_distributed_data = true; + static const bool supports_distributed_data DEAL_II_DEPRECATED = true; /** * Default constructor. Initialize the vector as empty. diff --git a/include/deal.II/lac/petsc_vector.h b/include/deal.II/lac/petsc_vector.h index c17688a56a..3686905b5b 100644 --- a/include/deal.II/lac/petsc_vector.h +++ b/include/deal.II/lac/petsc_vector.h @@ -68,8 +68,11 @@ namespace PETScWrappers * For the current class, the variable equals false, since it does not * support parallel data storage. If you do need parallel data storage, * use PETScWrappers::MPI::Vector. + * + * @deprecated instead of using this variable, please use the type trait + * value is_serial_vector< VectorType >::value */ - static const bool supports_distributed_data = false; + static const bool supports_distributed_data DEAL_II_DEPRECATED = false; /** * Default constructor. Initialize the vector as empty. diff --git a/include/deal.II/lac/trilinos_vector.h b/include/deal.II/lac/trilinos_vector.h index dff8b6c9d6..1c6a99bd5c 100644 --- a/include/deal.II/lac/trilinos_vector.h +++ b/include/deal.II/lac/trilinos_vector.h @@ -268,8 +268,11 @@ namespace TrilinosWrappers * * For the current class, the variable equals true, since it does * support parallel data storage. + * + * @deprecated instead of using this variable, please use the type trait + * value is_serial_vector< VectorType >::value */ - static const bool supports_distributed_data = true; + static const bool supports_distributed_data DEAL_II_DEPRECATED = true; /** * @name Basic constructors and initialization. @@ -767,8 +770,11 @@ namespace TrilinosWrappers * For the current class, the variable equals false, since it does not * support parallel data storage. If you do need parallel data storage, * use TrilinosWrappers::MPI::Vector. + * + * @deprecated instead of using this variable, please use the type trait + * value is_serial_vector< VectorType >::value */ - static const bool supports_distributed_data = false; + static const bool supports_distributed_data DEAL_II_DEPRECATED = false; /** * Default constructor that generates an empty (zero size) vector. The diff --git a/include/deal.II/lac/vector.h b/include/deal.II/lac/vector.h index 9abbd6da3f..6aa7a25da6 100644 --- a/include/deal.II/lac/vector.h +++ b/include/deal.II/lac/vector.h @@ -161,8 +161,11 @@ public: * * For the current class, the variable equals false, since it does not * support parallel data storage. + * + * @deprecated instead of using this variable, please use the type trait value + * is_serial_vector< VectorType >::value */ - static const bool supports_distributed_data = false; + static const bool supports_distributed_data DEAL_II_DEPRECATED = false; public: -- 2.39.5