]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix two warnings with an older PETSc versions. 2809/head
authorDavid Wells <wellsd2@rpi.edu>
Tue, 12 Jul 2016 21:00:16 +0000 (17:00 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Tue, 12 Jul 2016 21:00:16 +0000 (17:00 -0400)
source/lac/petsc_parallel_sparse_matrix.cc

index 7d3897a940efecba9cf7fd9ffb0ae03a8c4085ae..aaf27a8ddb699ffb748a3bfef9dcf69b9f4d203e 100644 (file)
@@ -770,6 +770,7 @@ namespace PETScWrappers
     {
 #if DEAL_II_PETSC_VERSION_LT(3,3,0)
       Assert(false,ExcNotImplemented());
+      return IndexSet();
 #else
       PetscInt n_rows, n_cols, n_loc_rows, n_loc_cols, min, max;
       PetscErrorCode ierr;
@@ -798,6 +799,7 @@ namespace PETScWrappers
     {
 #if DEAL_II_PETSC_VERSION_LT(3,3,0)
       Assert(false,ExcNotImplemented());
+      return IndexSet();
 #else
       PetscInt n_rows, n_cols, n_loc_rows, n_loc_cols, min, max;
       PetscErrorCode ierr;

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.