Skip to content

Commit

Permalink
Merge pull request #2168 from devitocodes/parametric-half-blocking
Browse files Browse the repository at this point in the history
api: Allow parametric par-tile as input
  • Loading branch information
FabioLuporini authored Jul 24, 2023
2 parents e076d36 + 16423f0 commit 0adb92e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions devito/core/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,11 @@ def __new__(cls, items, default=None):
# E.g., (32, 4, 8)
items = (ParTileArg(items),)

elif x is None:
# E.g. (None, None); to define the dimensionality of a block,
# while the actual shape values remain parametric
items = (ParTileArg(items),)

elif isinstance(x, ParTileArg):
# From a reconstruction
pass
Expand Down

0 comments on commit 0adb92e

Please sign in to comment.