]> https://gitweb.dealii.org/ - dealii.git/commitdiff
PETScWrappers::TimeStepper: use empty function when not knowing how to deal with... 15785/head
authorStefano Zampini <stefano.zampini@gmail.com>
Tue, 1 Aug 2023 16:26:55 +0000 (18:26 +0200)
committerStefano Zampini <stefano.zampini@gmail.com>
Tue, 1 Aug 2023 16:26:55 +0000 (18:26 +0200)
include/deal.II/lac/petsc_ts.templates.h

index 747b23583c950e6a1c4516656f4259f229c50a58..050cb2e962c849039ea5474eeebffef8868d3c3e 100644 (file)
@@ -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),

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.