Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using PECE with system with parameters #40

Closed
jClugstor opened this issue Jun 26, 2022 · 0 comments · Fixed by #41
Closed

Error using PECE with system with parameters #40

jClugstor opened this issue Jun 26, 2022 · 0 comments · Fixed by #41

Comments

@jClugstor
Copy link
Contributor

When trying to solve an FODE system with parameters an error occurs

`using FractionalDiffEq, Plots
plotlyjs()

function ChenSystem(du,u,p,t)
α, b, γ = p

x = u[1]
y = u[2]
z = u[3]

dx = α*(y - x)
dy = (γ - α)*x - x*z + γ*y
dz = x*y - b*z

du[1] = dx
du[2] = dy
du[3] = dz

end

prob = FODESystem(ChenSystem,qrow,y0,tspan,pars)
Ys = solve(prob, stepsize, PECE())
`
I think this is because PIPECE wasn't changed to allow for systems with separate parameters. Also noticed that PIPECE wasn't returning an FODESolution. I have a fix and will submit a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant