Skip to content
Merged
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
6 changes: 3 additions & 3 deletions devito/operator/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1511,13 +1511,13 @@ def nbytes_consumed_memmapped(self):

@cached_property
def nbytes_snapshots(self):
# Filter to streamed functions
disk = 0
# Layers are sometimes aliases, so include aliases here
for i in self._op_symbols:
try:
if i._child not in self._op_symbols:
if i._child is None:
# Use only the "innermost" layer to avoid counting snapshots
# twice
# twice. This layer will have no child.
v = self._apply_override(i)
disk += v.size_snapshot*v._time_size_ideal*np.dtype(v.dtype).itemsize
except AttributeError:
Expand Down
Loading