]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add dealii::BlockVector::has_ghost_elements() 6748/head
authorDenis Davydov <davydden@gmail.com>
Tue, 12 Jun 2018 20:28:51 +0000 (22:28 +0200)
committerDenis Davydov <davydden@gmail.com>
Tue, 12 Jun 2018 20:30:44 +0000 (22:30 +0200)
include/deal.II/lac/block_vector.h

index 2ed6fc7327bca310cd51ac668be4dc7dd91de6d7..addc39ae69b53aa80eb8b4f32883aff805087554 100644 (file)
@@ -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<Number>::compress(::dealii::VectorOperation::values operation)
 
 
 
+template <typename Number>
+inline bool
+BlockVector<Number>::has_ghost_elements() const
+{
+  return false;
+}
+
+
+
 template <typename Number>
 template <class BlockVector2>
 void

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.