From fb4b50ea316173a51b5c46dae599143cb715adb5 Mon Sep 17 00:00:00 2001 From: mloubout Date: Tue, 24 Sep 2024 09:47:46 -0400 Subject: [PATCH] api: fixmissing coeef in FD --- devito/finite_differences/finite_difference.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/devito/finite_differences/finite_difference.py b/devito/finite_differences/finite_difference.py index da476c3620..6ada6c40db 100644 --- a/devito/finite_differences/finite_difference.py +++ b/devito/finite_differences/finite_difference.py @@ -129,8 +129,10 @@ def generic_derivative(expr, dim, fd_order, deriv_order, matvec=direct, x0=None, return expr # Enforce stable time coefficients - if dim.is_Time and coefficients != 'symbolic': + if dim.is_Time: coefficients = 'taylor' + else: + coefficients = expr.coefficients return make_derivative(expr, dim, fd_order, deriv_order, side, matvec, x0, coefficients, expand, weights)