From ce901189d29a4d3aca9d28b60c3d1ff922997a27 Mon Sep 17 00:00:00 2001 From: heister Date: Fri, 17 Aug 2012 18:11:28 +0000 Subject: [PATCH] change debug check in trilinos vector and add comment git-svn-id: https://svn.dealii.org/trunk@26010 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/trilinos_vector_base.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/deal.II/include/deal.II/lac/trilinos_vector_base.h b/deal.II/include/deal.II/lac/trilinos_vector_base.h index 2b462a7707..4cabc1f59e 100644 --- a/deal.II/include/deal.II/lac/trilinos_vector_base.h +++ b/deal.II/include/deal.II/lac/trilinos_vector_base.h @@ -461,6 +461,10 @@ namespace TrilinosWrappers * To figure out which elements * exactly are stored locally, * use local_range(). + * + * If the vector contains ghost + * elements, they are included in + * this number. */ unsigned int local_size () const; @@ -1728,8 +1732,8 @@ namespace TrilinosWrappers // if we have ghost values, do not allow // writing to this vector at all. Assert (!has_ghost_elements(), ExcGhostsPresent()); - Assert (local_size() == v.local_size(), - ExcDimensionMismatch(local_size(), v.local_size())); + Assert (size() == v.size(), + ExcDimensionMismatch(size(), v.size())); Assert (numbers::is_finite(s), ExcNumberNotFinite()); -- 2.39.5