Skip to content

Commit a354bc0

Browse files
committed
fixing the feature that removes unwanted discontinuities at t=0 so that it works when a model is initialised from a previous state
1 parent 27e9257 commit a354bc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pybamm/solvers/base_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ def _get_discontinuity_start_end_indices(model, inputs, t_eval):
978978
i == len(discontinuities) - 1
979979
or discontinuities[i] < discontinuities[i + 1]
980980
)
981-
and v > 0
981+
and v > t_eval[0]
982982
]
983983

984984
# remove any discontinuities after end of t_eval

0 commit comments

Comments
 (0)