From 00f7bc98408f668c0b174b8e09a8fa28eeabbcd7 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Fri, 3 Dec 2021 09:37:26 +0100
Subject: [PATCH] [PL] TimeLoop: timestepper::setAccepted to error norms met.

---
 ProcessLib/TimeLoop.cpp | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/ProcessLib/TimeLoop.cpp b/ProcessLib/TimeLoop.cpp
index 4492048be8d..6a78fff27d7 100644
--- a/ProcessLib/TimeLoop.cpp
+++ b/ProcessLib/TimeLoop.cpp
@@ -339,14 +339,7 @@ double TimeLoop::computeTimeStepping(const double prev_dt, double& t,
                              x, x_prev, norm_type))
                 : 0.;
 
-        if (!ppd.nonlinear_solver_status.error_norms_met)
-        {
-            timestepper->setAccepted(false);
-        }
-        else
-        {
-            timestepper->setAccepted(true);
-        }
+        timestepper->setAccepted(ppd.nonlinear_solver_status.error_norms_met);
 
         auto [step_accepted, timestepper_dt] = timestepper->next(
             solution_error, ppd.nonlinear_solver_status.number_iterations);
-- 
GitLab