Skip to content

Commit 0a06dd2

Browse files
Error output time step for testing (#195)
1 parent 7ca3aaa commit 0a06dd2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/algebra/Integrator.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ State Integrator::step(const State& old_state, double time) {
8383
// Abort if maximum number of non-linear iterations is reached
8484
else if (i == max_iter - 1) {
8585
throw std::runtime_error(
86-
"Maximum number of non-linear iterations reached.");
86+
"Maximum number of non-linear iterations reached at time " +
87+
std::to_string(time));
8788
}
8889

8990
// Evaluate Jacobian

0 commit comments

Comments
 (0)