Skip to content

Commit

Permalink
#1863 fix bug introduced by merge
Browse files Browse the repository at this point in the history
  • Loading branch information
martinjrobins committed Mar 3, 2022
1 parent e1fc87a commit 1c1443c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pybamm/solvers/base_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,7 @@ def jacp(*args, **kwargs):
if found_t:
model.events.append(
pybamm.Event(
str(symbol),
expr.new_copy(),
pybamm.EventType.DISCONTINUITY,
str(symbol), expr, pybamm.EventType.DISCONTINUITY,
)
)
elif isinstance(symbol, pybamm.Modulo):
Expand All @@ -556,7 +554,8 @@ def jacp(*args, **kwargs):
for i in np.arange(N_events):
model.events.append(
pybamm.Event(
str(symbol), expr, pybamm.EventType.DISCONTINUITY
str(symbol), expr * pybamm.Scalar(i + 1),
pybamm.EventType.DISCONTINUITY
)
)

Expand Down

0 comments on commit 1c1443c

Please sign in to comment.