diff --git a/devito/operator/operator.py b/devito/operator/operator.py index 08a60e88b8..ce07ebb368 100644 --- a/devito/operator/operator.py +++ b/devito/operator/operator.py @@ -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: