Skip to content

Commit

Permalink
Merge pull request #186 from AayushSabharwal/as/odesol-internals
Browse files Browse the repository at this point in the history
fix: don't depend on `ODESolution` internals
  • Loading branch information
ChrisRackauckas authored Jun 6, 2024
2 parents 0557612 + c85b39e commit 157ead7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Random = "1.10"
ReTestItems = "1.23.1"
RecursiveArrayTools = "3.4"
Reexport = "1.2"
SciMLBase = "2.31"
SciMLBase = "2.40"
Setfield = "1"
SparseArrays = "1.10"
SparseDiffTools = "2.14"
Expand Down
12 changes: 1 addition & 11 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -360,17 +360,7 @@ end
# Construct BVP Solution
function __build_solution(prob::BVProblem, odesol, nlsol)
retcode = ifelse(SciMLBase.successful_retcode(nlsol), odesol.retcode, nlsol.retcode)
return __solution_new_original_retcode(odesol, nlsol, retcode, nlsol.resid)
end

function __solution_new_original_retcode(
sol::ODESolution{T, N}, original, retcode, resid) where {T, N}
return ODESolution{
T, N, typeof(sol.u), typeof(sol.u_analytic), typeof(sol.errors), typeof(sol.t),
typeof(sol.k), typeof(sol.prob), typeof(sol.alg), typeof(sol.interp),
typeof(sol.stats), typeof(sol.alg_choice), typeof(resid), typeof(original)}(
sol.u, sol.u_analytic, sol.errors, sol.t, sol.k, sol.prob, sol.alg, sol.interp,
sol.dense, sol.tslocation, sol.stats, sol.alg_choice, retcode, resid, original)
return SciMLBase.solution_new_original_retcode(odesol, nlsol, retcode, nlsol.resid)
end

# Fix3
Expand Down

0 comments on commit 157ead7

Please sign in to comment.