devito icon indicating copy to clipboard operation
devito copied to clipboard

Introduce devito.Zero to replace sympy.Zero in the FD layer

Open FabioLuporini opened this issue 3 months ago • 1 comments

this way we avoid annoying try-excepts such as

       try:
             theta = model.theta
         except AttributeError:
             theta = 0

or

if theta != 0:
    <expr>

FabioLuporini avatar Mar 13 '24 08:03 FabioLuporini