Skip to content

Commit 9d1828a

Browse files
committed
add integrator accessors for dispatch purposes
1 parent ab55e3c commit 9d1828a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/integrator_accessors.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# the following are setup per how integrators are implemented in OrdinaryDiffEq and
2+
# StochasticDiffEq and provide dispatch points that JumpProcesses and others can use.
3+
4+
# returns if the given integrator has an integ.iter field
5+
hasiter(integ) = true
6+
7+
get_tstops(integ) = integ.opts.tstops
8+
get_tstops_array(integ) = get_tstops(integ).valtree
9+
get_max_tstops(integ) = maximum(get_tstops_array(integ))

0 commit comments

Comments
 (0)