]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add guard on PETSc version 2516/head
authorESeNonFossiIo <esenonfossiio@gmail.com>
Mon, 18 Apr 2016 09:25:58 +0000 (11:25 +0200)
committerESeNonFossiIo <esenonfossiio@gmail.com>
Mon, 18 Apr 2016 09:25:58 +0000 (11:25 +0200)
source/lac/petsc_parallel_sparse_matrix.cc

index cade60680d455ae6175b97330173ec4cabf9f398..237bf2926846e12ff7a5aba24a4d666f2c70d60b 100644 (file)
@@ -893,6 +893,9 @@ namespace PETScWrappers
     IndexSet
     SparseMatrix::locally_owned_domain_indices () const
     {
+#if DEAL_II_PETSC_VERSION_LT(3,3,0)
+      Assert(false,ExcNotImplemented());
+#else
       PetscInt n_rows, n_cols, min, max, size;
       PetscErrorCode ierr;
       IS *rows = nullptr;
@@ -914,11 +917,15 @@ namespace PETScWrappers
       Assert(size==max-min+1, ExcMessage("PETSc is requiring non contiguous memory allocation."));
 
       return locally_owned_domain_indices;
+#endif
     }
 
     IndexSet
     SparseMatrix::locally_owned_range_indices () const
     {
+#if DEAL_II_PETSC_VERSION_LT(3,3,0)
+      Assert(false,ExcNotImplemented());
+#else
       PetscInt n_rows, n_cols, min, max, size;
       PetscErrorCode ierr;
       IS *rows = nullptr;
@@ -940,6 +947,7 @@ namespace PETScWrappers
       Assert(size==max-min+1, ExcMessage("PETSc is requiring non contiguous memory allocation."));
 
       return locally_owned_range_indices;
+#endif
     }
 
   }

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.