From 98eb124605eda480474333210c3528541e76f266 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 11 Feb 2017 08:40:38 -0500 Subject: [PATCH] Fix a deprecation warning in user codes. Since supports_distributed_data is deprecated, instantiating a BlockVector raises a deprecation warning in user codes. Fix this by simply using the type trait replacement. --- include/deal.II/lac/block_vector_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/deal.II/lac/block_vector_base.h b/include/deal.II/lac/block_vector_base.h index 35fcf7cdc8..8a960a9b19 100644 --- a/include/deal.II/lac/block_vector_base.h +++ b/include/deal.II/lac/block_vector_base.h @@ -573,7 +573,7 @@ public: * @deprecated instead of using this variable, please use the type trait value * is_serial_vector< VectorType >::value */ - static const bool supports_distributed_data DEAL_II_DEPRECATED = BlockType::supports_distributed_data; + static const bool supports_distributed_data DEAL_II_DEPRECATED = !is_serial_vector::value; /** * Default constructor. -- 2.39.5