From 1182fefd8fd553f54d84fecbc68de93172476e15 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 18 Nov 2010 17:03:29 +0000 Subject: [PATCH] Allow computing the linfty norm even for ghosted vectors. git-svn-id: https://svn.dealii.org/trunk@22805 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/lac/trilinos_vector_base.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 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 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)); -- 2.39.5