Skip to content

Commit 89fbd02

Browse files
committed
api: patch empty size
1 parent 1c40d72 commit 89fbd02

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devito/types/dimension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ def _arg_defaults(self, _min=None, size=None, alias=None):
10251025
if d1 < sympy.S.Infinity:
10261026
# We make sure the condition size matches the input size
10271027
size0 = (d1 - d0 + factor) // factor
1028-
if size < size0:
1028+
if size and size < size0:
10291029
raise ValueError(f"Incompatible size for ConditionalDimension "
10301030
f"{self.name}: {size} < {size0}")
10311031
else:

0 commit comments

Comments
 (0)