Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion devito/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ class Data(np.ndarray):

def __new__(cls, shape, dtype, decomposition=None, modulo=None,
allocator=ALLOC_ALIGNED, distributor=None, padding=0):
assert len(shape) == len(modulo)
ndarray, memfree_args = allocator.alloc(shape, dtype, padding=padding)
obj = ndarray.view(cls)
obj._allocator = allocator
obj._memfree_args = memfree_args
obj._decomposition = decomposition or (None,)*len(shape)
obj._modulo = modulo or (False,)*len(shape)
assert len(shape) == len(obj._modulo)
obj._distributor = distributor

# This cannot be a property, as Data objects constructed from this
Expand Down