Skip to content

Commit

Permalink
pybamm-team#1080 revert dt_max
Browse files Browse the repository at this point in the history
  • Loading branch information
rtimms committed Jun 30, 2020
1 parent bb11539 commit 5333fba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pybamm/solvers/casadi_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ def _integrate(self, model, t_eval, inputs=None):
# Non-dimensionalise provided dt_max
dt_max = self.dt_max / model.timescale_eval
else:
# t_f is the dimensionless final time (scaled with the timescale)
dt_max = 0.1 * min(1, t_f)
dt_max = 0.01
dt_eval_max = np.max(np.diff(t_eval)) * 1.01
dt_max = np.max([dt_max, dt_eval_max])
while t < t_f:
Expand Down

0 comments on commit 5333fba

Please sign in to comment.