From ef19c4abd04a4cf98f7c70efe26f6335ecebcc0e Mon Sep 17 00:00:00 2001 From: Edward Caunt Date: Tue, 23 Mar 2021 12:07:21 +0000 Subject: [PATCH] dsl: fix for custom substitutions at forward or backward timesteps --- devito/finite_differences/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devito/finite_differences/tools.py b/devito/finite_differences/tools.py index e97436c482..8e1e419754 100644 --- a/devito/finite_differences/tools.py +++ b/devito/finite_differences/tools.py @@ -140,7 +140,7 @@ def diff_f(expr, deriv_order, dims, fd_order, side=None, **kwargs): def symbolic_weights(function, deriv_order, indices, dim): - return [function._coeff_symbol(indices[j], deriv_order, function, dim) + return [function._coeff_symbol(indices[j], deriv_order, function.function, dim) for j in range(0, len(indices))]