From: Denis Davydov Date: Tue, 12 Jun 2018 20:28:51 +0000 (+0200) Subject: add dealii::BlockVector::has_ghost_elements() X-Git-Tag: v9.1.0-rc1~1045^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9fd9696fcaad8468df74289b40b308ec8b8d332;p=dealii.git add dealii::BlockVector::has_ghost_elements() --- diff --git a/include/deal.II/lac/block_vector.h b/include/deal.II/lac/block_vector.h index 2ed6fc7327..addc39ae69 100644 --- a/include/deal.II/lac/block_vector.h +++ b/include/deal.II/lac/block_vector.h @@ -185,6 +185,15 @@ public: compress(::dealii::VectorOperation::values operation = ::dealii::VectorOperation::unknown); + /** + * Returns `false` as this is a serial block vector. + * + * This functionality only needs to be called if using MPI based vectors and + * exists in other objects for compatibility. + */ + bool + has_ghost_elements() const; + /** * Copy operator: fill all components of the vector with the given scalar * value. @@ -446,6 +455,15 @@ BlockVector::compress(::dealii::VectorOperation::values operation) +template +inline bool +BlockVector::has_ghost_elements() const +{ + return false; +} + + + template template void