diff --git a/src/time_integration/methods_2N.jl b/src/time_integration/methods_2N.jl index a0285c2f000..d2f22679c4f 100644 --- a/src/time_integration/methods_2N.jl +++ b/src/time_integration/methods_2N.jl @@ -119,10 +119,10 @@ function solve(ode::ODEProblem, alg::T; # initialize callbacks if callback isa CallbackSet - foreach(callbacks.continuous_callbacks) do cb + foreach(callback.continuous_callbacks) do cb error("unsupported") end - foreach(callbacks.discrete_callbacks) do cb + foreach(callback.discrete_callbacks) do cb cb.initialize(cb, integrator.u, integrator.t, integrator) end elseif !isnothing(callback) diff --git a/src/time_integration/methods_3Sstar.jl b/src/time_integration/methods_3Sstar.jl index 493bdc0d616..b0ce5930514 100644 --- a/src/time_integration/methods_3Sstar.jl +++ b/src/time_integration/methods_3Sstar.jl @@ -189,10 +189,10 @@ function solve(ode::ODEProblem, alg::T; # initialize callbacks if callback isa CallbackSet - foreach(callbacks.continuous_callbacks) do cb + foreach(callback.continuous_callbacks) do cb error("unsupported") end - foreach(callbacks.discrete_callbacks) do cb + foreach(callback.discrete_callbacks) do cb cb.initialize(cb, integrator.u, integrator.t, integrator) end elseif !isnothing(callback) diff --git a/src/time_integration/methods_SSP.jl b/src/time_integration/methods_SSP.jl index daae783e76d..6424dde7d31 100644 --- a/src/time_integration/methods_SSP.jl +++ b/src/time_integration/methods_SSP.jl @@ -124,10 +124,10 @@ function solve(ode::ODEProblem, alg = SimpleSSPRK33()::SimpleAlgorithmSSP; # initialize callbacks if callback isa CallbackSet - foreach(callbacks.continuous_callbacks) do cb + foreach(callback.continuous_callbacks) do cb error("unsupported") end - foreach(callbacks.discrete_callbacks) do cb + foreach(callback.discrete_callbacks) do cb cb.initialize(cb, integrator.u, integrator.t, integrator) end elseif !isnothing(callback)