-
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
MPI: Fix sparse subfunction handling when used without parent #2278
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2278 +/- ##
==========================================
- Coverage 86.83% 86.80% -0.03%
==========================================
Files 229 229
Lines 42464 42516 +52
Branches 7876 7889 +13
==========================================
+ Hits 36872 36908 +36
- Misses 4939 4952 +13
- Partials 653 656 +3 ☔ View full report in Codecov by Sentry. |
cbded3b
to
b8687ce
Compare
3f5c5aa
to
030e0b6
Compare
devito/types/sparse.py
Outdated
loc_shape = [] | ||
assert len(dimensions) == len(shape) | ||
for i, (d, s) in enumerate(zip(dimensions, shape)): | ||
if i is cls._sparse_position: |
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.
intergers want == , though ininfluential here
devito/types/sparse.py
Outdated
@@ -174,6 +191,7 @@ def _comm(self): | |||
|
|||
@property | |||
def _coords_indices(self): | |||
# Assume integer dtypemeans gridpioints |
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.
typo
Plus minor generic cleanup/tweaks
Fixes #2277