From 8c0bd965962fe9d041c5f9a3528965b32e71fa6c Mon Sep 17 00:00:00 2001
From: podlesny <podlesny@zedat.fu-berlin.de>
Date: Mon, 8 Feb 2021 19:11:55 +0100
Subject: [PATCH] introduce hard-coded max time step size

---
 dune/tectonic/time-stepping/adaptivetimestepper.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/tectonic/time-stepping/adaptivetimestepper.cc b/dune/tectonic/time-stepping/adaptivetimestepper.cc
index 4514cade..924af2e8 100644
--- a/dune/tectonic/time-stepping/adaptivetimestepper.cc
+++ b/dune/tectonic/time-stepping/adaptivetimestepper.cc
@@ -73,7 +73,7 @@ int AdaptiveTimeStepper<Factory, ContactNetwork, Updaters, ErrorNorms>::coarsen(
 
     const auto& currentNBodyAssembler = contactNetwork_.nBodyAssembler();
 
-    while (relativeTime_ + relativeTau_ <= 1.0) {
+    while (relativeTime_ + relativeTau_ <= 1.0 && relativeTau_ < 0.1) {
       //std::cout << "tau: " << relativeTau_ << std::endl;
 
       setDeformation(current_);
-- 
GitLab