From abfbaf780eee0f439ef36349d296e0a5c5b3fd87 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 10 Aug 2005 15:36:48 +0000 Subject: [PATCH] Hopefully now for 2.3.0 git-svn-id: https://svn.dealii.org/trunk@11274 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/petsc_matrix_base.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deal.II/lac/source/petsc_matrix_base.cc b/deal.II/lac/source/petsc_matrix_base.cc index 7902e84627..5d9d449eca 100644 --- a/deal.II/lac/source/petsc_matrix_base.cc +++ b/deal.II/lac/source/petsc_matrix_base.cc @@ -214,13 +214,13 @@ namespace PETScWrappers #endif ISCreateGeneral (get_mpi_communicator(), 1, &petsc_row, &index_set); - static const PetscScalar zero = 0; #if (PETSC_VERSION_MAJOR <= 2) && (PETSC_VERSION_MINOR <= 2) + static const PetscScalar zero = 0; const int ierr = MatZeroRows(matrix, index_set, &zero); #else const int ierr - = MatZeroRowsIS(matrix, index_set, &zero); + = MatZeroRowsIS(matrix, index_set, 0); #endif AssertThrow (ierr == 0, ExcPETScError(ierr)); @@ -252,13 +252,13 @@ namespace PETScWrappers ISCreateGeneral (get_mpi_communicator(), rows.size(), &petsc_rows[0], &index_set); - static const PetscScalar zero = 0; #if (PETSC_VERSION_MAJOR <= 2) && (PETSC_VERSION_MINOR <= 2) + static const PetscScalar zero = 0; const int ierr = MatZeroRows(matrix, index_set, &zero); #else const int ierr - = MatZeroRowsIS(matrix, index_set, &zero); + = MatZeroRowsIS(matrix, index_set, 0.); #endif AssertThrow (ierr == 0, ExcPETScError(ierr)); -- 2.39.5