]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Allow computing the linfty norm even for ghosted vectors.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Nov 2010 17:03:29 +0000 (17:03 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 18 Nov 2010 17:03:29 +0000 (17:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@22805 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/lac/trilinos_vector_base.h

index 21d13c78ff9ca7b11b900646eecace7a7b4b7c23..22c8d8c5c7151aca41fefd918d59ab15aa3f62f6 100644 (file)
@@ -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));

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.