]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add Vector::zero_out_ghost_values 14109/head
authorPeter Munch <peterrmuench@gmail.com>
Thu, 7 Jul 2022 17:36:11 +0000 (19:36 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Thu, 7 Jul 2022 17:36:11 +0000 (19:36 +0200)
include/deal.II/lac/vector.h

index f424881e5c296b730ebbc781f56e7331df2c18e8..b031633fb1e40bbe12b859bf5de2e57e1ecf04c4 100644 (file)
@@ -994,11 +994,19 @@ public:
 
   /**
    * This function exists for compatibility with the @p
-   * parallel vector classes (e.g., LinearAlgebra::distributed::Vector class).
-   * Always returns false since this implementation is serial.
+   * parallel vector classes (e.g., LinearAlgebra::distributed::Vector class)
+   * and always returns false since this implementation is serial.
    */
   bool
   has_ghost_elements() const;
+
+  /**
+   * This function exists for compatibility with the @p
+   * parallel vector classes (e.g., LinearAlgebra::distributed::Vector class)
+   * and does nothing since this implementation is serial.
+   */
+  void
+  zero_out_ghost_values() const;
   //@}
 
 private:
@@ -1315,6 +1323,7 @@ inline void Vector<Number>::compress(::dealii::VectorOperation::values) const
 {}
 
 
+
 template <typename Number>
 inline bool
 Vector<Number>::has_ghost_elements() const
@@ -1322,6 +1331,15 @@ Vector<Number>::has_ghost_elements() const
   return false;
 }
 
+
+
+template <typename Number>
+inline void
+Vector<Number>::zero_out_ghost_values() const
+{}
+
+
+
 template <typename Number>
 inline void
 Vector<Number>::update_ghost_values() const

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.