Skip to content

Commit 52cc0ad

Browse files
Merge pull request #858 from AayushSabharwal/as/late-tstops
feat: add `allows_late_binding_tstops` algorithm trait
2 parents c61b13d + c8c18ca commit 52cc0ad

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/alg_traits.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,13 @@ For more information, see https://oatml.cs.ox.ac.uk/blog/2022/03/22/ito-strat.ht
285285
function alg_interpretation(alg::AbstractSciMLAlgorithm)
286286
error("Algorithm interpretation is not defined for this algorithm. It can be either `AlgorithmInterpretation.Ito` or `AlgorithmInterpretation.Stratonovich`")
287287
end
288+
289+
"""
290+
$(TYPEDSIGNATURES)
291+
292+
Trait declaration for whether an algorithm supports specifying `tstops` as a function `tstops(p, tspan)` to be called after
293+
initialization.
294+
295+
Defaults to false.
296+
"""
297+
allows_late_binding_tstops(alg::AbstractODEAlgorithm) = false

0 commit comments

Comments
 (0)