Skip to content

Commit

Permalink
api: fix corner case in precomputerd
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Oct 25, 2024
1 parent b466c28 commit f95007d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/types/sparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ def __init_finalize__(self, *args, **kwargs):
if r <= 0:
raise ValueError('`r` must be > 0')
# Make sure radius matches the coefficients size
if any(c in kwargs for c in ckeys):
if any(c in kwargs for c in ckeys) and self._interpolation_coeffs is not None:
nr = self._interpolation_coeffs.shape[-1]
if nr // 2 != r:
if nr == r:
Expand Down

0 comments on commit f95007d

Please sign in to comment.