-
Notifications
You must be signed in to change notification settings - Fork 7
Add assertions when slicing #860
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
Add assertions when slicing #860
Conversation
@EmilyBourne We have an out of bound access in |
I had a look. The problem is to do with the handling of the derivatives. They are only required when Hermite boundary conditions are used, so the rest of the time they are initialised to a |
3fa00f6
to
98206b3
Compare
Yes I got also confused when trying to add checks in Also, I would like to add some preconditions in
To do so I need to rework some internals of DDC that may violate these preconditions (no worry it is kind of legitimate). |
Codecov ReportAttention: Patch coverage is
❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #860 +/- ##
==========================================
- Coverage 90.03% 89.92% -0.12%
==========================================
Files 55 55
Lines 2851 2859 +8
Branches 969 974 +5
==========================================
+ Hits 2567 2571 +4
- Misses 90 92 +2
- Partials 194 196 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Some of the modifications are not very clear to me.
If you can improve the error messages, it would be nicer.
Also comments in death-tests would be helpful.
I can try to reformulate, we want to add assertions to help diagnose out of bounds slicing operations. |
No description provided.