]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a deprecation warning in user codes. 3963/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 11 Feb 2017 13:40:38 +0000 (08:40 -0500)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 11 Feb 2017 13:40:38 +0000 (08:40 -0500)
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

index 35fcf7cdc8e082002a96b3827d3d8177d00c68cc..8a960a9b19e777a354fca9d2a98ec37bf42d768f 100644 (file)
@@ -573,7 +573,7 @@ public:
    * @deprecated instead of using this variable, please use the type trait value
    * <code>is_serial_vector< VectorType >::value</code>
    */
-  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<BlockType>::value;
 
   /**
    * Default constructor.

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.