From: Wolfgang Bangerth Date: Thu, 17 Nov 2022 20:46:24 +0000 (-0700) Subject: Re-introduce (now deprecated) old constructor. X-Git-Tag: v9.5.0-rc1~841^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf6c92320bd89c105618d56e3a0f6c8fbbe782f4;p=dealii.git Re-introduce (now deprecated) old constructor. --- diff --git a/include/deal.II/lac/petsc_precondition.h b/include/deal.II/lac/petsc_precondition.h index 16df0d8039..8b96a859fc 100644 --- a/include/deal.II/lac/petsc_precondition.h +++ b/include/deal.II/lac/petsc_precondition.h @@ -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. diff --git a/source/lac/petsc_precondition.cc b/source/lac/petsc_precondition.cc index 6f145d31de..2124f58a0b 100644 --- a/source/lac/petsc_precondition.cc +++ b/source/lac/petsc_precondition.cc @@ -41,6 +41,12 @@ namespace PETScWrappers + PreconditionBase::PreconditionBase() + : PreconditionBase(MPI_COMM_NULL) + {} + + + PreconditionBase::~PreconditionBase() { try