-
-
Couldn't load subscription status.
- Fork 79
Stop interpolating to get du for IDA. #408
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
Conversation
…rivatives for essentially no reason (and doing so caused problems whenever you hit callbacks). As a nice side-benefit, this removes the 200 warnings
|
Given the aforementioned issue, it would be good to have a test of the interpolation accuracy here. Maybe adapt one from https://github.com/SciML/OrdinaryDiffEq.jl/blob/master/test/regression/ode_dense_tests.jl and use that to test the interpolation accuracy. Show the result before and after this PR, and then with the if statement in. With exactly this PR, the interpolation accuracy should be substantially worse (and if you plot it you should show weird oscillations), but the good thing here would be to then use that to set a regression test limit that will ensure this issue isn't accidentally added in. |
Codecov Report
@@ Coverage Diff @@
## master #408 +/- ##
==========================================
+ Coverage 81.32% 81.44% +0.11%
==========================================
Files 11 11
Lines 1435 1428 -7
==========================================
- Hits 1167 1163 -4
+ Misses 268 265 -3
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
I've added a set of interpolation tests and they behave very similarly with this PR and master. I had to change the test a decent amount from the OrdinaryDiffEq version though because sundials integrators can not have their adaptivity turned off. |
|
Something is going crazy in the formatting here. |
|
thanks! |


This fixes #292. It turns out we were asking for interpolated derivatives for essentially no reason (and doing so caused problems whenever you hit callbacks that re-init the problem). As a nice side-benefit, this removes the 200 warnings from the test-suite.