From db7a10a8ef83d3cd13fa45628fb1421f779e13ee Mon Sep 17 00:00:00 2001 From: mloubout Date: Thu, 26 Sep 2024 08:55:18 -0400 Subject: [PATCH] api: make sure legacy symbolic with no coeffs defaults to taylor --- devito/finite_differences/tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devito/finite_differences/tools.py b/devito/finite_differences/tools.py index 2f84088fd7..09beee22dc 100644 --- a/devito/finite_differences/tools.py +++ b/devito/finite_differences/tools.py @@ -231,7 +231,8 @@ def numeric_weights(function, deriv_order, indices, x0): return finite_diff_weights(deriv_order, indices, x0)[-1][-1] -fd_weights_registry = {'taylor': numeric_weights, 'standard': numeric_weights} +fd_weights_registry = {'taylor': numeric_weights, 'standard': numeric_weights, + 'symbolic': numeric_weights} # Backward compat for 'symbolic' coeff_priority = {'taylor': 1, 'standard': 1}