From: Stefano Zampini <stefano.zampini@gmail.com>
Date: Tue, 1 Aug 2023 16:26:55 +0000 (+0200)
Subject: PETScWrappers::TimeStepper: use empty function when not knowing how to deal with... 
X-Git-Tag: relicensing~621^2
X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa83e121bbc9fc9df1f2d480423a91b735989d0b;p=dealii.git

PETScWrappers::TimeStepper: use empty function when not knowing how to deal with the exception
---

diff --git a/include/deal.II/lac/petsc_ts.templates.h b/include/deal.II/lac/petsc_ts.templates.h
index 747b23583c..050cb2e962 100644
--- a/include/deal.II/lac/petsc_ts.templates.h
+++ b/include/deal.II/lac/petsc_ts.templates.h
@@ -441,7 +441,7 @@ namespace PETScWrappers
       const int err    = call_and_possibly_capture_ts_exception(
         user->decide_for_coarsening_and_refinement,
         user->pending_exception,
-        []() -> void {},
+        {},
         t,
         it,
         xdealii,
@@ -476,11 +476,7 @@ namespace PETScWrappers
 
       const int lineno = __LINE__;
       const int err    = call_and_possibly_capture_ts_exception(
-        user->interpolate,
-        user->pending_exception,
-        []() -> void {},
-        all_in,
-        all_out);
+        user->interpolate, user->pending_exception, {}, all_in, all_out);
       if (err)
         return PetscError(
           PetscObjectComm((PetscObject)ts),
@@ -911,12 +907,7 @@ namespace PETScWrappers
 
       const int lineno = __LINE__;
       const int err    = call_and_possibly_capture_ts_exception(
-        user->monitor,
-        user->pending_exception,
-        []() -> void {},
-        t,
-        xdealii,
-        it);
+        user->monitor, user->pending_exception, {}, t, xdealii, it);
       if (err)
         return PetscError(
           PetscObjectComm((PetscObject)ts),