We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dfe810 commit 1c844d0Copy full SHA for 1c844d0
src/integrators.jl
@@ -217,9 +217,11 @@ function __step!(integrator)
217
218
# apply callbacks
219
discrete_callbacks = integrator.callback.discrete_callbacks
220
- for callback in discrete_callbacks
+ for (ncb, callback) in enumerate(discrete_callbacks)
221
if callback.condition(integrator.u, integrator.t, integrator)
222
- callback.affect!(integrator)
+ NVTX.@range "Callback $ncb of $(length(discrete_callbacks))" color = colorant"yellow" begin
223
+ callback.affect!(integrator)
224
+ end
225
end
226
227
0 commit comments