Skip to content

Commit

Permalink
Merge pull request #169 from ErikQQY/qqy/destats_update
Browse files Browse the repository at this point in the history
Update DEStats in ODEInterface extension
  • Loading branch information
ChrisRackauckas authored Feb 25, 2024
2 parents c64eb05 + 70c0505 commit 0602c00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "BoundaryValueDiffEq"
uuid = "764a87c0-6b3e-53db-9096-fe964310641d"
version = "5.6.2"
version = "5.6.3"

[deps]
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"
Expand Down Expand Up @@ -55,7 +55,7 @@ PrecompileTools = "1"
Preferences = "1"
RecursiveArrayTools = "2.38.10, 3"
Reexport = "0.2, 1.0"
SciMLBase = "2.5"
SciMLBase = "2.6.2"
Setfield = "1"
SparseArrays = "1.9"
SparseDiffTools = "2.9"
Expand Down
4 changes: 2 additions & 2 deletions ext/BoundaryValueDiffEqODEInterfaceExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function SciMLBase.__solve(prob::BVProblem, alg::BVPM2; dt = 0.0, reltol = 1e-3,
sol, retcode, stats = bvpm2_solve(initial_guess, bvp2m_f, bvp2m_bc, opt)
retcode = retcode 0 ? ReturnCode.Success : ReturnCode.Failure
destats = SciMLBase.DEStats(
stats["no_rhs_calls"], 0, 0, 0, stats["no_jac_calls"], 0, 0, 0, 0, 0, 0)
stats["no_rhs_calls"], 0, 0, 0, stats["no_jac_calls"], 0, 0, 0, 0, 0, 0, 0, 0)

x_mesh = bvpm2_get_x(sol)
evalsol = evalSolution(sol, x_mesh)
Expand Down Expand Up @@ -230,7 +230,7 @@ function SciMLBase.__solve(prob::BVProblem, alg::COLNEW; maxiters = 1000,

evalsol = evalSolution(sol, mesh)
destats = SciMLBase.DEStats(
stats["no_rhs_calls"], 0, 0, 0, stats["no_jac_calls"], 0, 0, 0, 0, 0, 0)
stats["no_rhs_calls"], 0, 0, 0, stats["no_jac_calls"], 0, 0, 0, 0, 0, 0, 0, 0)

return DiffEqBase.build_solution(prob, alg, mesh,
collect(Vector{eltype(evalsol)}, eachrow(evalsol));
Expand Down

0 comments on commit 0602c00

Please sign in to comment.