-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Remove check in check_error!
#670
Conversation
Fixes SciML#669. I'm not sure why this check was there. Was it just to save work? Why should the postamble not run if it is successful?
Does this allocation get elided? |
Running this on the example from #669 I don't see any allocations, nor do I see it in a profile.
I decided to give AllocCheck a try. It just triggered this which looks unrelated:
Running AllocCheck on |
I mean in the context of a normal solve. Elision should happen in isolation but I want to make sure the compiler doesn't hit some limit say on Lorenz. |
I saw allocations coming from Now the number of allocations for Lorentz is all from setup, just like in this example: |
@test integrator.sol.retcode == ReturnCode.Default | ||
@test check_error(integrator) == ReturnCode.Success | ||
@test integrator.sol.retcode == ReturnCode.Default | ||
@test SciMLBase.check_error!(integrator) == ReturnCode.Success | ||
@test integrator.sol.retcode == ReturnCode.Success |
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.
Add a test that nothing is allocated and this is good to go.
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.
Is 14f6bce ok? Or do you also want to test this on Lorentz using OrdinaryDiffEq?
Sorry for the delayed review, but add an allocs test and this is good. |
That should be sufficient. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #670 +/- ##
==========================================
- Coverage 40.55% 31.74% -8.82%
==========================================
Files 55 55
Lines 4478 4505 +27
==========================================
- Hits 1816 1430 -386
- Misses 2662 3075 +413 ☔ View full report in Codecov by Sentry. |
Fixes #669.
I'm not sure why this check was there. Was it just to save work? Why should the postamble not run if it is successful?