From c21934353c5aae316023abf98bab0f5ea923a53f Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Mon, 14 Oct 2024 17:09:23 +0530 Subject: [PATCH] refactor: format --- src/integrator_interface.jl | 17 ++++++++++------- src/scimlfunctions.jl | 4 ++-- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/src/integrator_interface.jl b/src/integrator_interface.jl index a3137ea7d..9f042681f 100644 --- a/src/integrator_interface.jl +++ b/src/integrator_interface.jl @@ -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) diff --git a/src/scimlfunctions.jl b/src/scimlfunctions.jl index 22981e8dd..1d9ece710 100644 --- a/src/scimlfunctions.jl +++ b/src/scimlfunctions.jl @@ -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,