]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Re-introduce (now deprecated) old constructor. 14438/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 17 Nov 2022 20:46:24 +0000 (13:46 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 17 Nov 2022 20:46:24 +0000 (13:46 -0700)
include/deal.II/lac/petsc_precondition.h
source/lac/petsc_precondition.cc

index 16df0d8039f66d777e2cb13f35b5f79a6b1b30e3..8b96a859fc4aaa42646d432141979ae6613ec025 100644 (file)
@@ -62,7 +62,15 @@ namespace PETScWrappers
     /**
      * Constructor.
      */
-    PreconditionBase(const MPI_Comm &mpi_communicator = MPI_COMM_NULL);
+    explicit PreconditionBase(const MPI_Comm &mpi_communicator);
+
+    /**
+     * Constructor. This constructor is deprecated.
+     *
+     * @deprecated
+     */
+    DEAL_II_DEPRECATED
+    PreconditionBase();
 
     /**
      * Destructor.
index 6f145d31de4146550c6c4a1ad22256a017dc6754..2124f58a0b66173cfe9037ca8eb03f4c0d7d7a8f 100644 (file)
@@ -41,6 +41,12 @@ namespace PETScWrappers
 
 
 
+  PreconditionBase::PreconditionBase()
+    : PreconditionBase(MPI_COMM_NULL)
+  {}
+
+
+
   PreconditionBase::~PreconditionBase()
   {
     try

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.