Skip to content

Commit

Permalink
Merge branch 'master' into ap/stable_default
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal authored Nov 7, 2023
2 parents b904229 + fc529de commit d666585
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/BenchmarkPR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
with:
version: "1"
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
mkdir -p plots
benchpkgplot ${{ steps.extract-package-name.outputs.package_name }} --rev="${{github.event.repository.default_branch}},${{github.event.pull_request.head.sha}}" --npart=10 --format=png --input-dir=results/ --output-dir=plots/
- name: Upload plot as artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: plots
path: plots
Expand Down
6 changes: 4 additions & 2 deletions ext/BoundaryValueDiffEqODEInterfaceExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ function __solve(prob::BVProblem, alg::BVPM2; dt = 0.0, reltol = 1e-3, kwargs...
retcode = retcode 0 ? ReturnCode.Success : ReturnCode.Failure

x_mesh = bvpm2_get_x(sol)
evalsol = evalSolution(sol, x_mesh)
sol_final = DiffEqBase.build_solution(prob, alg, x_mesh,
eachcol(evalSolution(sol, x_mesh)); retcode, stats)
collect(Vector{eltype(evalsol)}, eachcol(evalsol)); retcode, stats)

bvpm2_destroy(initial_guess)
bvpm2_destroy(sol)
Expand Down Expand Up @@ -112,7 +113,8 @@ function __solve(prob::BVProblem, alg::BVPSOL; maxiters = 1000, reltol = 1e-3,
end
end

return DiffEqBase.build_solution(prob, alg, sol_t, eachcol(sol_x);
return DiffEqBase.build_solution(prob, alg, sol_t,
collect(Vector{eltype(sol_x)}, eachcol(sol_x));
retcode = retcode 0 ? ReturnCode.Success : ReturnCode.Failure, stats)
end

Expand Down

0 comments on commit d666585

Please sign in to comment.