-
Notifications
You must be signed in to change notification settings - Fork 229
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
api: more robust processing of custom weight with spacing #2489
Conversation
7ca8be2
to
21a0e31
Compare
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2489 +/- ##
=======================================
Coverage 87.28% 87.29%
=======================================
Files 238 238
Lines 45347 45366 +19
Branches 4028 4029 +1
=======================================
+ Hits 39583 39602 +19
Misses 5083 5083
Partials 681 681 ☔ View full report in Codecov by Sentry. |
@@ -85,7 +85,7 @@ def cross_derivative(expr, dims, fd_order, deriv_order, x0=None, side=None, **kw | |||
return expr | |||
|
|||
|
|||
@check_input | |||
# @check_input |
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.
leftover
devito/finite_differences/tools.py
Outdated
return len(list(weights)), None | ||
# Adimensional weight from custom coeffs need to be multiplied by h^order | ||
if not all(sympify(w).has(dim.spacing) for w in weights if w != 0): | ||
scale = True |
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.
scale = not all(....)
21a0e31
to
6f00de2
Compare
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.
uncontroversial now!
No description provided.