From: bangerth Date: Thu, 18 Nov 2010 17:03:29 +0000 (+0000) Subject: Allow computing the linfty norm even for ghosted vectors. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1182fefd8fd553f54d84fecbc68de93172476e15;p=dealii-svn.git Allow computing the linfty norm even for ghosted vectors. git-svn-id: https://svn.dealii.org/trunk@22805 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 21d13c78ff..22c8d8c5c7 100644 --- a/deal.II/include/deal.II/lac/trilinos_vector_base.h +++ b/deal.II/include/deal.II/lac/trilinos_vector_base.h @@ -1438,9 +1438,11 @@ namespace TrilinosWrappers VectorBase::real_type VectorBase::linfty_norm () const { - Assert (vector->Map().UniqueGIDs()==true, - ExcGhostsPresent()); - + // while we disallow the other + // norm operations on ghosted + // vectors, this particular norm + // is safe to run even in the + // presence of ghost elements TrilinosScalar d; const int ierr = vector->NormInf (&d); AssertThrow (ierr == 0, ExcTrilinosError(ierr));