Skip to content

Commit

Permalink
#1082 print dimensional t and dt_max
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinsulzer committed Jun 30, 2020
1 parent 066b88f commit ce4ca81
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pybamm/solvers/casadi_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,11 @@ def _integrate(self, model, t_eval, inputs=None):
if count >= self.max_step_decrease_count:
raise pybamm.SolverError(
"Maximum number of decreased steps occurred at t={}. Try "
"solving the model up to this time only or reducing dt_max."
"".format(t)
"solving the model up to this time only or reducing dt_max "
"(currently, dt_max={})."
"".format(
t * model.timescale_eval, dt_max * model.timescale_eval
)
)
# Check most recent y to see if any events have been crossed
new_event_signs = np.sign(
Expand Down

0 comments on commit ce4ca81

Please sign in to comment.