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

Fix #34 #35

Merged
merged 1 commit into from
Jan 25, 2021
Merged

Fix #34 #35

merged 1 commit into from
Jan 25, 2021

Conversation

devmotion
Copy link
Member

Fixes #34.

Comment on lines +227 to +236
if integrator.P !== nothing && integrator.opts.adaptive
if integrator.cache isa StochasticDiffEqMutableCache
oldrate = integrator.P.cache.currate
integrator.P.cache.rate(oldrate, integrator.u, integrator.p, integrator.t)
else
integrator.P.cache.currate = integrator.P.cache.rate(
integrator.u, integrator.p, integrator.t
)
end
end
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original code in StochasticDiffEq is incorrect (unqualified u, p, t, and P), it seems it is not tested properly.

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

Successfully merging this pull request may close these issues.

Callback implementation
2 participants