Skip to content

Commit 39b057f

Browse files
committed
pass only RHS in generate_affect_function
1 parent 896fdb7 commit 39b057f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/systems/jumps/jumpsystem.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function generate_rate_function(js, rate)
7575
end
7676

7777
function generate_affect_function(js, affect, outputidxs)
78-
build_function(affect, states(js),
78+
bf = build_function(map(x->x isa Equation ? x.rhs : x , affect), states(js),
7979
parameters(js),
8080
conv = states_to_sym(states(js)),
8181
independent_variable(js),

0 commit comments

Comments
 (0)