]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bug fix: Relaxed tolerance on is_hermitian() and is_symmetric() operations on PETScMa...
authorToby D. Young <tyoung@ippt.pan.pl>
Thu, 22 Jul 2010 13:34:15 +0000 (13:34 +0000)
committerToby D. Young <tyoung@ippt.pan.pl>
Thu, 22 Jul 2010 13:34:15 +0000 (13:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@21556 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/petsc_matrix_base.h

index b4f4d804267ce8d803ef2ef1e67e909132ba7d8e..857398860bed10b99459e5d5fb286c6641737046 100644 (file)
@@ -1091,19 +1091,25 @@ namespace PETScWrappers
       void transpose ();
 
                                         /**
-                                        * Test whether a matrix is symmetric.
-                                        * Default tolerance is zero.
+                                        * Test whether a matrix is
+                                        * symmetric.  Default
+                                        * tolerance is
+                                        * $1000\times32$-bit machine
+                                        * precision.
                                         */
-      PetscTruth is_symmetric (const double tol = 0.0);
+      PetscTruth is_symmetric (const double tolerance = 1.e-12);
 
 #if DEAL_II_PETSC_VERSION_GTE(2,3,0)
                                         /**
-                                        * Test whether a matrix is Hermitian,
-                                        * i.e. it is the complex conjugate
-                                        * of its transpose. Default tolerance
-                                        * is zero.
+                                        * Test whether a matrix is
+                                        * Hermitian, i.e. it is the
+                                        * complex conjugate of its
+                                        * transpose. Default
+                                        * tolerance is
+                                        * $1000\times32$-bit machine
+                                        * precision.
                                         */
-      PetscTruth is_hermitian (const double tol = 0.0);
+      PetscTruth is_hermitian (const double tolerance = 1.e-12);
 #endif
 
                                         /*

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.