Skip to content

Commit c8757e4

Browse files
committed
output and crash if dt is tiny
1 parent 79d5d30 commit c8757e4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/driver/driver.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ DriverStatus EvolutionDriver::Execute() {
133133
// check for signals
134134
signal = SignalHandler::CheckSignalFlags();
135135

136+
// TODO(bwibking): check for application debug callback
137+
// currently hard-coded to check for tiny dt
138+
if (tm.dt < 1e-10 * tm.time) {
139+
signal = OutputSignal::final;
140+
}
141+
136142
if (signal == OutputSignal::final) {
137143
break;
138144
}

0 commit comments

Comments
 (0)