Skip to content

Commit 262be8f

Browse files
feat: add get_sol interface method for DEIntegrator
1 parent 3c36216 commit 262be8f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/integrator_interface.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,15 @@ function set_ut!(integrator::DEIntegrator, u, t)
383383
set_t!(integrator, t)
384384
end
385385

386+
"""
387+
get_sol(integrator::DEIntegrator)
388+
389+
Get the solution object contained in the integrator.
390+
"""
391+
function get_sol(integrator::DEIntegrator)
392+
return integrator.sol
393+
end
394+
386395
### Addat isn't a real thing. Let's make it a real thing Gretchen
387396

388397
function addat!(a::AbstractArray, idxs, val = nothing)

0 commit comments

Comments
 (0)