Skip to content

Commit 721e829

Browse files
committed
compiler: fix linearization padding check
1 parent 5d07778 commit 721e829

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

devito/passes/iet/linearization.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,8 @@ def key1(f, d):
7171
# For paddable objects the following holds:
7272
# `same dim + same halo + same padding_dtype => same (auto-)padding`
7373
if d is f.dimensions[-1]:
74-
# Only the last dimension is padded
7574
try:
76-
if f.padding == f.mapped.padding:
77-
# Padding set from the mapped Function
78-
# e.g. from buffering or fft temp array
79-
pad_key = f.mapped.__padding_dtype__
80-
else:
81-
pad_key = f.__padding_dtype__
75+
pad_key = f.mapped.__padding_dtype__
8276
except AttributeError:
8377
pad_key = f.__padding_dtype__
8478
else:

0 commit comments

Comments
 (0)