From: Timo Heister Date: Fri, 17 Aug 2012 18:11:28 +0000 (+0000) Subject: change debug check in trilinos vector and add comment X-Git-Tag: v8.0.0~2299 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1187dce3ac6da55beea25b7ae5ee3f0315049aec;p=dealii.git change debug check in trilinos vector and add comment git-svn-id: https://svn.dealii.org/trunk@26010 0785d39b-7218-0410-832d-ea1e28bc413d --- 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());