Skip to content

Commit

Permalink
api: fixmissing coeef in FD
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Sep 24, 2024
1 parent 97b81fc commit fb4b50e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devito/finite_differences/finite_difference.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb4b50e

Please sign in to comment.