From 99a165066397dce9c41a2cc995daaadf2a0c9076 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 21 May 2017 17:28:11 -0400 Subject: [PATCH] Implement update_ghost_values stubs. --- include/deal.II/lac/petsc_vector_base.h | 15 +++++++++++++++ include/deal.II/lac/trilinos_vector_base.h | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/include/deal.II/lac/petsc_vector_base.h b/include/deal.II/lac/petsc_vector_base.h index 5039e4e2ec..f80781cec3 100644 --- a/include/deal.II/lac/petsc_vector_base.h +++ b/include/deal.II/lac/petsc_vector_base.h @@ -369,6 +369,14 @@ namespace PETScWrappers */ bool has_ghost_elements() const; + /** + * This function only exists for compatibility with the @p + * LinearAlgebra::distributed::Vector class and does nothing: this class + * implements ghost value updates in a different way that is a better fit + * with the underlying PETSc vector object. + */ + void update_ghost_values () const; + /** * Provide access to a given element, both read and write. */ @@ -1107,6 +1115,13 @@ namespace PETScWrappers + inline + void + VectorBase::update_ghost_values () const + {} + + + inline internal::VectorReference VectorBase::operator () (const size_type index) diff --git a/include/deal.II/lac/trilinos_vector_base.h b/include/deal.II/lac/trilinos_vector_base.h index 3a8718b5b0..54d5043f5c 100644 --- a/include/deal.II/lac/trilinos_vector_base.h +++ b/include/deal.II/lac/trilinos_vector_base.h @@ -412,6 +412,14 @@ namespace TrilinosWrappers */ bool has_ghost_elements() const; + /** + * This function only exists for compatibility with the @p + * LinearAlgebra::distributed::Vector class and does nothing: this class + * implements ghost value updates in a different way that is a better fit + * with the underlying Trilinos vector object. + */ + void update_ghost_values () const; + /** * Return the scalar (inner) product of two vectors. The vectors must have * the same size. @@ -1018,6 +1026,13 @@ namespace TrilinosWrappers + inline + void + VectorBase::update_ghost_values () const + {} + + + inline internal::VectorReference VectorBase::operator () (const size_type index) -- 2.39.5