From a9fd9696fcaad8468df74289b40b308ec8b8d332 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Tue, 12 Jun 2018 22:28:51 +0200 Subject: [PATCH] add dealii::BlockVector::has_ghost_elements() --- include/deal.II/lac/block_vector.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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 -- 2.39.5