Skip to content

Commit ac68597

Browse files
FabioLuporinimloubout
authored andcommitted
compiler: Fixup Bundle.nbytes
1 parent 387cc41 commit ac68597

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

devito/types/array.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,10 @@ def symbolic_shape(self):
503503
# shape, i.e. something along the lines of `(x_size, y_size, z_size)`
504504
return self.c0.symbolic_shape
505505

506+
@property
507+
def nbytes(self):
508+
return self.size*self.dtype.itemsize
509+
506510
@property
507511
def _mem_heap(self):
508512
return not any([self._mem_stack, self._mem_shared, self._mem_shared_remote])

0 commit comments

Comments
 (0)