Skip to content

Commit 8d428bf

Browse files
committedFeb 6, 2020
#759 add some more comments
1 parent eb54959 commit 8d428bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎pybamm/solvers/base_solver.py

+3
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ def solve(self, model, t_eval, external_variables=None, inputs=None):
459459
dtime + sys.float_info.epsilon])
460460
end_indices.append(len(t_eval))
461461

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

0 commit comments

Comments
 (0)