From: Wolfgang Bangerth Date: Wed, 16 Feb 2011 14:52:56 +0000 (+0000) Subject: Add a comment. X-Git-Tag: v8.0.0~4325 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc519f45dab63be0f6dcc5e3e110297520a7fa5d;p=dealii.git Add a comment. git-svn-id: https://svn.dealii.org/trunk@23377 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 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));