]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Put missing petsc-dev upgrade in
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Sep 2011 09:10:59 +0000 (09:10 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 6 Sep 2011 09:10:59 +0000 (09:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@24260 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/petsc_parallel_sparse_matrix.cc

index 0b7f32bffcf6b6d31a78ac39de684e9ef68f19ab..81906c4e481deae81f63a75ed49caf1a3424fa44 100644 (file)
@@ -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,

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.