Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith authored Nov 15, 2023
1 parent 87dabc5 commit 4a534a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/integrators/discrete_callback_dual_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ times_finalize_called = 0
function stopping_cb(tstop)
condition = (u, t, integrator) -> t == tstop
affect! = integrator -> (println("Stopped!"); integrator.p = zero(integrator.p))
DiscreteCallback(condition, affect!, finalize=(args...)->times_finalize_called+=1)
DiscreteCallback(condition, affect!, finalize=(args...)->global times_finalize_called+=1)
end

function test_fun(tstop)
Expand Down

0 comments on commit 4a534a8

Please sign in to comment.