]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove another PETSc compatibility issue we no longer need. 15109/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Apr 2023 16:42:27 +0000 (10:42 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 18 Apr 2023 16:42:27 +0000 (10:42 -0600)
We currently require PETSc 3.7 or later, so no need to support pre-3.5 versions.

source/lac/petsc_precondition.cc

index cc2ed27fe5680266e233bfc002f94a27e822ef89..1a7701a7e54c2615aba51491af0d605034c002d4 100644 (file)
@@ -114,11 +114,7 @@ namespace PETScWrappers
 
     create_pc_with_comm(comm);
 
-#  if DEAL_II_PETSC_VERSION_LT(3, 5, 0)
-    ierr = PCSetOperators(pc, matrix, matrix, SAME_PRECONDITIONER);
-#  else
     ierr = PCSetOperators(pc, matrix, matrix);
-#  endif
     AssertThrow(ierr == 0, ExcPETScError(ierr));
   }
 
@@ -1098,11 +1094,7 @@ namespace PETScWrappers
   {
     initialize(matrix.get_mpi_communicator());
     PetscErrorCode ierr;
-#  if DEAL_II_PETSC_VERSION_LT(3, 5, 0)
-    ierr = PCSetOperators(pc, matrix, matrix, DIFFERENT_NONZERO_PATTERN);
-#  else
     ierr = PCSetOperators(pc, matrix, matrix);
-#  endif
     AssertThrow(ierr == 0, ExcPETScError(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.