Skip to content

Commit

Permalink
refactor: format
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Oct 22, 2024
1 parent 677bc55 commit c219343
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions src/integrator_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -331,19 +331,22 @@ Otherwise the integrator is allowed to skip recalculating the interpolation.
# Arguments
- `continuous_modification`: determines whether the modification is due to a continuous change (continuous callback)
or a discrete callback. For a continuous change, this can include a change to time which requires a re-evaluation
of the interpolations.
- `callback_initializealg`: the initialization algorithm provided by the callback. For DAEs, this is the choice for the
initialization that is done post callback. The default value of `nothing` means that the initialization choice
used for the DAE should be performed post-callback.
- `continuous_modification`: determines whether the modification is due to a continuous change (continuous callback)
or a discrete callback. For a continuous change, this can include a change to time which requires a re-evaluation
of the interpolations.
- `callback_initializealg`: the initialization algorithm provided by the callback. For DAEs, this is the choice for the
initialization that is done post callback. The default value of `nothing` means that the initialization choice
used for the DAE should be performed post-callback.
"""
function reeval_internals_due_to_modification!(
integrator::DEIntegrator, continuous_modification;
callback_initializealg = nothing)
reeval_internals_due_to_modification!(integrator::DEIntegrator)
end
reeval_internals_due_to_modification!(integrator::DEIntegrator; callback_initializealg = nothing) = nothing
function reeval_internals_due_to_modification!(
integrator::DEIntegrator; callback_initializealg = nothing)
nothing
end

"""
set_t!(integrator::DEIntegrator, t)
Expand Down
4 changes: 2 additions & 2 deletions src/scimlfunctions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2693,8 +2693,8 @@ function SplitFunction{iip, specialize}(f1, f2;
f1.jac_prototype :
nothing,
W_prototype = __has_W_prototype(f1) ?
f1.W_prototype :
nothing,
f1.W_prototype :
nothing,
sparsity = __has_sparsity(f1) ? f1.sparsity :
jac_prototype,
Wfact = __has_Wfact(f1) ? f1.Wfact : nothing,
Expand Down

0 comments on commit c219343

Please sign in to comment.