Skip to content

Commit

Permalink
Merge pull request #79 from sharanry/sy/augment_bug_fix
Browse files Browse the repository at this point in the history
`augment` function bug fix
  • Loading branch information
ChrisRackauckas authored Jul 7, 2021
2 parents 1b9a38d + d3fd30e commit 8895e5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/solutions/solution_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ Base.show(io::IO, m::MIME"text/plain", A::AbstractNoTimeSolution) = (print(io,"u

# For augmenting system information to enable symbol based indexing of interpolated solutions
function augment(A::DiffEqArray, sol::AbstractODESolution)
syms = hasproperty(sol.prob.f, :syms) ? sol.prob.f.syms : nothing
observed = has_observed(sol.prob.f) ? sol.prob.f.observed : DEFAULT_OBSERVED
DiffEqArray(A.u, A.t, sol.prob.f.syms,getindepsym(sol),observed,sol.prob.p)
p = hasproperty(sol.prob, :p) ? sol.prob.p : nothing
DiffEqArray(A.u, A.t, syms, getindepsym(sol),observed,p)
end

# Symbol Handling
Expand Down

0 comments on commit 8895e5f

Please sign in to comment.