From: David Wells Date: Sun, 21 May 2017 21:28:11 +0000 (-0400) Subject: Implement update_ghost_values stubs. X-Git-Tag: v9.0.0-rc1~1582^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99a165066397dce9c41a2cc995daaadf2a0c9076;p=dealii.git Implement update_ghost_values stubs. --- 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)