From bd98de53f128a2a0eca2aff793f50d841f6295f8 Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 16 Feb 2011 14:52:56 +0000 Subject: [PATCH] Add a comment. git-svn-id: https://svn.dealii.org/trunk@23377 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 e136a15302..27188dd76a 100644 --- a/deal.II/include/deal.II/lac/trilinos_vector_base.h +++ b/deal.II/include/deal.II/lac/trilinos_vector_base.h @@ -1768,10 +1768,14 @@ namespace TrilinosWrappers } else { - // Otherwise, just update - int ierr; + // Otherwise, just update. verify + // that *this does not only have + // the same map as v (the + // if-condition above) but also as + // w Assert (vector->Map().SameAs(w.vector->Map()), ExcDifferentParallelPartitioning()); + int ierr; ierr = vector->GlobalAssemble(last_action); AssertThrow (ierr == 0, ExcTrilinosError(ierr)); -- 2.39.5