Skip to content

Commit 296f0bf

Browse files
committed
api: fix f-string typo
1 parent b284917 commit 296f0bf

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

devito/finite_differences/tools.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,10 @@ def generate_indices(expr, dim, order, side=None, matvec=None, x0=None, nweights
268268
raise ValueError(f"More weights ({nweights}) provided than the maximum "
269269
f"stencil size ({order + 1}) for order {order} scheme")
270270
elif do > dw:
271+
order = nweights - nweights % 2
271272
warning(f"Less weights ({nweights}) provided than the stencil size"
272273
f"({order + 1}) for order {order} scheme."
273-
" Reducing order to {nweights//2}")
274-
order = nweights - nweights % 2
275-
274+
f" Reducing order to {order}")
276275
# Evaluation point
277276
x0 = sympify(((x0 or {}).get(dim) or expr.indices_ref[dim]))
278277

0 commit comments

Comments
 (0)