From c8757e4392fde1948e0f5c6f08b359eb79ee335c Mon Sep 17 00:00:00 2001 From: Ben Wibking Date: Wed, 23 Oct 2024 16:53:03 -0400 Subject: [PATCH] output and crash if dt is tiny --- src/driver/driver.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/driver/driver.cpp b/src/driver/driver.cpp index 17b913e3a2ac..0443bdb6a756 100644 --- a/src/driver/driver.cpp +++ b/src/driver/driver.cpp @@ -133,6 +133,12 @@ DriverStatus EvolutionDriver::Execute() { // check for signals signal = SignalHandler::CheckSignalFlags(); + // TODO(bwibking): check for application debug callback + // currently hard-coded to check for tiny dt + if (tm.dt < 1e-10 * tm.time) { + signal = OutputSignal::final; + } + if (signal == OutputSignal::final) { break; }