diff --git a/src/DiffEqBase.jl b/src/DiffEqBase.jl index c6cbc650b..02d5fa05b 100644 --- a/src/DiffEqBase.jl +++ b/src/DiffEqBase.jl @@ -141,6 +141,7 @@ include("forwarddiff.jl") include("termination_conditions_deprecated.jl") # TODO: remove in the next major release include("termination_conditions.jl") include("norecompile.jl") +include("integrator_accessors.jl") # This is only used for oop stiff solvers default_factorize(A) = lu(A; check = false) diff --git a/src/integrator_accessors.jl b/src/integrator_accessors.jl new file mode 100644 index 000000000..3a7550918 --- /dev/null +++ b/src/integrator_accessors.jl @@ -0,0 +1,9 @@ +# the following are setup per how integrators are implemented in OrdinaryDiffEq and +# StochasticDiffEq and provide dispatch points that JumpProcesses and others can use. + +get_tstops(integ::DEIntegrator) = + error("get_tstops not implemented for integrators of type $(nameof(typeof(integ)))") +get_tstops_array(integ::DEIntegrator) = + error("get_tstops_array not implemented for integrators of type $(nameof(typeof(integ)))") +get_tstops_max(integ::DEIntegrator) = + error("get_tstops_max not implemented for integrators of type $(nameof(typeof(integ)))")