Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Doehring <[email protected]>
  • Loading branch information
ranocha and DanielDoehring authored Oct 23, 2023
1 parent 0d76043 commit 4570325
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/time_integration/methods_2N.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/time_integration/methods_3Sstar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/time_integration/methods_SSP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4570325

Please sign in to comment.