Skip to content

Commit

Permalink
Merge pull request #858 from AayushSabharwal/as/late-tstops
Browse files Browse the repository at this point in the history
feat: add `allows_late_binding_tstops` algorithm trait
  • Loading branch information
ChrisRackauckas authored Nov 12, 2024
2 parents c61b13d + c8c18ca commit 52cc0ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/alg_traits.jl
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,13 @@ For more information, see https://oatml.cs.ox.ac.uk/blog/2022/03/22/ito-strat.ht
function alg_interpretation(alg::AbstractSciMLAlgorithm)
error("Algorithm interpretation is not defined for this algorithm. It can be either `AlgorithmInterpretation.Ito` or `AlgorithmInterpretation.Stratonovich`")
end

"""
$(TYPEDSIGNATURES)
Trait declaration for whether an algorithm supports specifying `tstops` as a function `tstops(p, tspan)` to be called after
initialization.
Defaults to false.
"""
allows_late_binding_tstops(alg::AbstractODEAlgorithm) = false

0 comments on commit 52cc0ad

Please sign in to comment.