@@ -321,18 +321,29 @@ end
321
321
addsteps! (i:: DEIntegrator , args... ) = nothing
322
322
323
323
"""
324
- reeval_internals_due_to_modification!(integrator::DEIntegrator, continuous_modification=true)
324
+ reeval_internals_due_to_modification!(integrator::DEIntegrator, continuous_modification::Bool=true;
325
+ callback_initializealg = nothing)
325
326
326
327
Update DE integrator after changes by callbacks.
327
328
For DAEs (either implicit or semi-explicit), this requires re-solving alebraic variables.
328
329
If continuous_modification is true (or unspecified), this should also recalculate interpolation data.
329
330
Otherwise the integrator is allowed to skip recalculating the interpolation.
331
+
332
+ # Arguments
333
+
334
+ - `continuous_modification`: determines whether the modification is due to a continuous change (continuous callback)
335
+ or a discrete callback. For a continuous change, this can include a change to time which requires a re-evaluation
336
+ of the interpolations.
337
+ - `callback_initializealg`: the initialization algorithm provided by the callback. For DAEs, this is the choice for the
338
+ initialization that is done post callback. The default value of `nothing` means that the initialization choice
339
+ used for the DAE should be performed post-callback.
330
340
"""
331
341
function reeval_internals_due_to_modification! (
332
- integrator:: DEIntegrator , continuous_modification)
342
+ integrator:: DEIntegrator , continuous_modification:: Bool ;
343
+ callback_initializealg = nothing )
333
344
reeval_internals_due_to_modification! (integrator:: DEIntegrator )
334
345
end
335
- reeval_internals_due_to_modification! (integrator:: DEIntegrator ) = nothing
346
+ reeval_internals_due_to_modification! (integrator:: DEIntegrator ; callback_initializealg = nothing ) = nothing
336
347
337
348
"""
338
349
set_t!(integrator::DEIntegrator, t)
0 commit comments