From: Peter Munch Date: Thu, 7 Jul 2022 17:36:11 +0000 (+0200) Subject: Add Vector::zero_out_ghost_values X-Git-Tag: v9.5.0-rc1~1101^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14109%2Fhead;p=dealii.git Add Vector::zero_out_ghost_values --- diff --git a/include/deal.II/lac/vector.h b/include/deal.II/lac/vector.h index f424881e5c..b031633fb1 100644 --- a/include/deal.II/lac/vector.h +++ b/include/deal.II/lac/vector.h @@ -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::compress(::dealii::VectorOperation::values) const {} + template inline bool Vector::has_ghost_elements() const @@ -1322,6 +1331,15 @@ Vector::has_ghost_elements() const return false; } + + +template +inline void +Vector::zero_out_ghost_values() const +{} + + + template inline void Vector::update_ghost_values() const