|
19 | 19 | SizeOf, VOID, pow_to_mul) |
20 | 20 | from devito.tools import as_mapper, as_list, as_tuple, filter_sorted, flatten |
21 | 21 | from devito.types import (Array, ComponentAccess, CustomDimension, DeviceMap, |
22 | | - DeviceRM, Eq, Symbol, IndexedData) |
| 22 | + DeviceRM, Eq, Symbol) |
23 | 23 |
|
24 | 24 | __all__ = ['DataManager', 'DeviceAwareDataManager', 'Storage'] |
25 | 25 |
|
@@ -451,8 +451,7 @@ def place_casts(self, iet, **kwargs): |
451 | 451 | # (i) Dereferencing a PointerArray, e.g., `float (*r0)[.] = (float(*)[.]) pr0[.]` |
452 | 452 | # (ii) Declaring a raw pointer, e.g., `float * r0 = NULL; *malloc(&(r0), ...) |
453 | 453 | defines = set(FindSymbols('defines|globals').visit(iet)) |
454 | | - bases = sorted({i.base for i in indexeds |
455 | | - if isinstance(i.base, IndexedData)}, key=lambda i: i.name) |
| 454 | + bases = sorted({i.base for i in indexeds}, key=lambda i: i.name) |
456 | 455 |
|
457 | 456 | # Some objects don't distinguish their _C_symbol because they are known, |
458 | 457 | # by construction, not to require it, thus making the generated code |
|
0 commit comments