From 81f9b51e0182a13710ea8acf71b2432131692ea0 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sun, 4 Jun 2017 19:49:27 -0400 Subject: [PATCH] Remove usages of the deprecated PetscBooleanType. Followup to db66997e97: we should avoid using deprecated types in the library and public headers. --- include/deal.II/lac/petsc_matrix_base.h | 4 ++-- source/lac/petsc_matrix_base.cc | 8 ++++---- source/lac/petsc_vector_base.cc | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/deal.II/lac/petsc_matrix_base.h b/include/deal.II/lac/petsc_matrix_base.h index cd3dd12c4e..d1550963db 100644 --- a/include/deal.II/lac/petsc_matrix_base.h +++ b/include/deal.II/lac/petsc_matrix_base.h @@ -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); /** diff --git a/source/lac/petsc_matrix_base.cc b/source/lac/petsc_matrix_base.cc index e74f076ec7..012286016e 100644 --- a/source/lac/petsc_matrix_base.cc +++ b/source/lac/petsc_matrix_base.cc @@ -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); diff --git a/source/lac/petsc_vector_base.cc b/source/lac/petsc_vector_base.cc index 99e0f0f1a1..46cf913bef 100644 --- a/source/lac/petsc_vector_base.cc +++ b/source/lac/petsc_vector_base.cc @@ -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)); -- 2.39.5