Skip to content

Commit

Permalink
#759 add some more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Feb 6, 2020
1 parent eb54959 commit 8d428bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pybamm/solvers/base_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ def solve(self, model, t_eval, external_variables=None, inputs=None):
dtime + sys.float_info.epsilon])
end_indices.append(len(t_eval))

# integrate separatly over each time segment and accumulate into the solution
# object, restarting the solver at each discontinuity (and recalculating a
# consistent state afterwards if a dae)
old_y0 = model.y0
solution = None
for start_index, end_index in zip(start_indices, end_indices):
Expand Down

0 comments on commit 8d428bf

Please sign in to comment.