Skip to content

Commit 763890f

Browse files
committed
api: fix snapshots mem estimate with alias
1 parent a8763f2 commit 763890f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devito/operator/operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1518,7 +1518,7 @@ def nbytes_snapshots(self):
15181518
# Layers are sometimes aliases, so include aliases here
15191519
for i in self._op_symbols:
15201520
try:
1521-
if i._child is None:
1521+
if i._child is None and i.alias is not True:
15221522
# Use only the "innermost" layer to avoid counting snapshots
15231523
# twice. This layer will have no child.
15241524
v = self._apply_override(i)

0 commit comments

Comments
 (0)