-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #120 from ErikQQY/qqy/remove
Remove redundant problems and solvers
- Loading branch information
Showing
20 changed files
with
135 additions
and
780 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module FractionalDiffEqFdeSolverExt | ||
|
||
using DiffEqBase, SciMLBase, FractionalDiffEq | ||
using FdeSolver | ||
|
||
# const default_values = (2^-6, 1, nothing, 1e-6, 100) | ||
function SciMLBase.__solve(prob::FODEProblem, alg::FdeSolverPECE; dt = 0.0, abstol = 1e-3, maxiters = 1000, kwargs...) | ||
(; f, order, tspan, u0, p) = prob | ||
|
||
tSpan = [first(tspan), last(tspan)] | ||
# FdeSolver only supports out-of-place computing | ||
newf = function (t, y, par) | ||
du = similar(y) | ||
f(du, y, par, t) | ||
return du | ||
end | ||
t, y = FDEsolver(newf, tSpan, u0, order, p, JF = prob.f.jac, h = dt, tol = abstol) | ||
u = eachrow(y) | ||
|
||
return DiffEqBase.build_solution(prob, alg, t, u) | ||
end | ||
|
||
export FdeSolverPECE | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
eb87249
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark Results
FLMM/Trapezoid
16573801.5
ns16727289
ns0.99
FLMM/NewtonGregory
16448950.5
ns16744188
ns0.98
FLMM/BDF
15710771
ns16152978.5
ns0.97
This comment was automatically generated by workflow using github-action-benchmark.