From aa83e121bbc9fc9df1f2d480423a91b735989d0b Mon Sep 17 00:00:00 2001 From: Stefano Zampini Date: Tue, 1 Aug 2023 18:26:55 +0200 Subject: [PATCH] PETScWrappers::TimeStepper: use empty function when not knowing how to deal with the exception --- include/deal.II/lac/petsc_ts.templates.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) 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), -- 2.39.5