@@ -699,7 +699,7 @@ function compile_affect(eqs::Vector{Equation}, cb, sys, dvs, ps; outputidxs = no
699699 add_integrator_header (sys, integ, outvar),
700700 outputidxs = update_inds,
701701 create_bindings = false ,
702- kwargs... )
702+ kwargs... , cse = false )
703703 # applied user-provided function to the generated expression
704704 if postprocess_affect_expr! != = nothing
705705 postprocess_affect_expr! (rf_ip, integ)
@@ -729,7 +729,7 @@ function generate_single_rootfinding_callback(
729729 end
730730
731731 rf_oop, rf_ip = generate_custom_function (
732- sys, [eq. rhs], dvs, ps; expression = Val{false }, kwargs... )
732+ sys, [eq. rhs], dvs, ps; expression = Val{false }, kwargs... , cse = false )
733733 affect_function = compile_affect_fn (cb, sys, dvs, ps, kwargs)
734734 cond = function (u, t, integ)
735735 if DiffEqBase. isinplace (integ. sol. prob)
@@ -780,7 +780,7 @@ function generate_vector_rootfinding_callback(
780780
781781 rhss = map (x -> x. rhs, eqs)
782782 _, rf_ip = generate_custom_function (
783- sys, rhss, dvs, ps; expression = Val{false }, kwargs... )
783+ sys, rhss, dvs, ps; expression = Val{false }, kwargs... , cse = false )
784784
785785 affect_functions = @NamedTuple {
786786 affect:: Function ,
0 commit comments