From 9d0491d36117425f4695691a3c4b34d14b2237e4 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 11 Feb 2021 11:59:22 -0500 Subject: [PATCH] Addreess reviewer comments --- include/deal.II/base/partitioner.h | 4 ++++ include/deal.II/lac/la_parallel_vector.h | 2 +- include/deal.II/lac/petsc_vector_base.h | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/include/deal.II/base/partitioner.h b/include/deal.II/base/partitioner.h index 91c76f1b2a..7a4314686b 100644 --- a/include/deal.II/base/partitioner.h +++ b/include/deal.II/base/partitioner.h @@ -285,6 +285,8 @@ namespace Utilities /** * Return the number of locally owned indices, * i.e., local_range().second minus local_range().first. + * The returned numbers need to add up to the total number of indices when + * summed over all processes * * @deprecated Use the more clearly named function locally_owned_size() * instead. @@ -296,6 +298,8 @@ namespace Utilities /** * Return the number of locally owned indices, * i.e., local_range().second minus local_range().first. + * The returned numbers need to add up to the total number of indices when + * summed over all processes */ unsigned int locally_owned_size() const; diff --git a/include/deal.II/lac/la_parallel_vector.h b/include/deal.II/lac/la_parallel_vector.h index 81b9284a0a..e269e56938 100644 --- a/include/deal.II/lac/la_parallel_vector.h +++ b/include/deal.II/lac/la_parallel_vector.h @@ -925,7 +925,7 @@ namespace LinearAlgebra * Return the local size of the vector, i.e., the number of indices * owned locally. * - * @deprecated use locally_owned_size() instead. + * @deprecated Use locally_owned_size() instead. */ DEAL_II_DEPRECATED_EARLY size_type diff --git a/include/deal.II/lac/petsc_vector_base.h b/include/deal.II/lac/petsc_vector_base.h index 55ac42fb66..c108f40327 100644 --- a/include/deal.II/lac/petsc_vector_base.h +++ b/include/deal.II/lac/petsc_vector_base.h @@ -356,7 +356,7 @@ namespace PETScWrappers * is the same as size(), but for parallel vectors it may be smaller. * * To figure out which elements exactly are stored locally, use - * local_range(). + * local_range() or locally_owned_elements(). * * @deprecated use locally_owned_size() instead. */ @@ -370,7 +370,7 @@ namespace PETScWrappers * is the same as size(), but for parallel vectors it may be smaller. * * To figure out which elements exactly are stored locally, use - * local_range(). + * local_range() or locally_owned_elements(). */ size_type locally_owned_size() const; -- 2.39.5