Skip to content

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

Open
@FabioLuporini

Description

this way we avoid annoying try-excepts such as

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

or

if theta != 0:
    <expr>

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions