From 384eddc66484e97b86773c8917e3d61ecffc416a Mon Sep 17 00:00:00 2001 From: young Date: Tue, 6 Sep 2011 09:10:59 +0000 Subject: [PATCH] Put missing petsc-dev upgrade in git-svn-id: https://svn.dealii.org/trunk@24260 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/lac/petsc_parallel_sparse_matrix.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deal.II/source/lac/petsc_parallel_sparse_matrix.cc b/deal.II/source/lac/petsc_parallel_sparse_matrix.cc index 0b7f32bffc..81906c4e48 100644 --- a/deal.II/source/lac/petsc_parallel_sparse_matrix.cc +++ b/deal.II/source/lac/petsc_parallel_sparse_matrix.cc @@ -114,7 +114,11 @@ namespace PETScWrappers // get rid of old matrix and generate a // new one +#if DEAL_II_PETSC_VERSION_DEV() + const int ierr = MatDestroy (&matrix); +#else const int ierr = MatDestroy (matrix); +#endif AssertThrow (ierr == 0, ExcPETScError(ierr)); do_reinit (m, n, local_rows, local_columns, @@ -136,7 +140,11 @@ namespace PETScWrappers // get rid of old matrix and generate a // new one +#if DEAL_II_PETSC_VERSION_DEV() + const int ierr = MatDestroy (&matrix); +#else const int ierr = MatDestroy (matrix); +#endif AssertThrow (ierr == 0, ExcPETScError(ierr)); do_reinit (m, n, local_rows, local_columns, row_lengths, is_symmetric); @@ -158,7 +166,11 @@ namespace PETScWrappers // get rid of old matrix and generate a // new one +#if DEAL_II_PETSC_VERSION_DEV() + const int ierr = MatDestroy (&matrix); +#else const int ierr = MatDestroy (matrix); +#endif AssertThrow (ierr == 0, ExcPETScError(ierr)); do_reinit (sparsity_pattern, local_rows_per_process, -- 2.39.5