Skip to content

Commit

Permalink
output and crash if dt is tiny
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Oct 23, 2024
1 parent 79d5d30 commit c8757e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/driver/driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c8757e4

Please sign in to comment.