devito
devito copied to clipboard
Introduce devito.Zero to replace sympy.Zero in the FD layer
this way we avoid annoying try-excepts such as
try:
theta = model.theta
except AttributeError:
theta = 0
or
if theta != 0:
<expr>