]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove usages of the deprecated PetscBooleanType. 4484/head
authorDavid Wells <wellsd2@rpi.edu>
Sun, 4 Jun 2017 23:49:27 +0000 (19:49 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 4 Jun 2017 23:49:27 +0000 (19:49 -0400)
Followup to db66997e97: we should avoid using deprecated types in the library
and public headers.

include/deal.II/lac/petsc_matrix_base.h
source/lac/petsc_matrix_base.cc
source/lac/petsc_vector_base.cc

index cd3dd12c4ea9c7846a57b7807ca25238f329a465..d1550963dbf2425c9329a3943ab81004c70ba6b3 100644 (file)
@@ -834,7 +834,7 @@ namespace PETScWrappers
      * Test whether a matrix is symmetric.  Default tolerance is
      * $1000\times32$-bit machine precision.
      */
-    PetscBooleanType
+    PetscBool
     is_symmetric (const double tolerance = 1.e-12);
 
     /**
@@ -842,7 +842,7 @@ namespace PETScWrappers
      * its transpose. Default tolerance is $1000\times32$-bit machine
      * precision.
      */
-    PetscBooleanType
+    PetscBool
     is_hermitian (const double tolerance = 1.e-12);
 
     /**
index e74f076ec7459ef91e11d1bbfad1343d8106483d..012286016e54f5ed25b183c44501afc47d7c9f2f 100644 (file)
@@ -518,20 +518,20 @@ namespace PETScWrappers
     AssertThrow (ierr == 0, ExcPETScError(ierr));
   }
 
-  PetscBooleanType
+  PetscBool
   MatrixBase::is_symmetric (const double tolerance)
   {
-    PetscBooleanType truth;
+    PetscBool truth;
     assert_is_compressed ();
     const PetscErrorCode ierr = MatIsSymmetric (matrix, tolerance, &truth);
     AssertThrow (ierr == 0, ExcPETScError(ierr));
     return truth;
   }
 
-  PetscBooleanType
+  PetscBool
   MatrixBase::is_hermitian (const double tolerance)
   {
-    PetscBooleanType truth;
+    PetscBool truth;
 
     assert_is_compressed ();
     const PetscErrorCode ierr = MatIsHermitian (matrix, tolerance, &truth);
index 99e0f0f1a12aa00a08883c9fb44816b16a7988d8..46cf913bef8067ef092da37b10bb7119f169563b 100644 (file)
@@ -222,7 +222,7 @@ namespace PETScWrappers
     Assert (size() == v.size(),
             ExcDimensionMismatch(size(), v.size()));
 
-    PetscBooleanType flag;
+    PetscBool flag;
     const PetscErrorCode ierr = VecEqual (vector, v.vector, &flag);
     AssertThrow (ierr == 0, ExcPETScError(ierr));
 
@@ -237,7 +237,7 @@ namespace PETScWrappers
     Assert (size() == v.size(),
             ExcDimensionMismatch(size(), v.size()));
 
-    PetscBooleanType flag;
+    PetscBool flag;
     const PetscErrorCode ierr = VecEqual (vector, v.vector, &flag);
     AssertThrow (ierr == 0, ExcPETScError(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.