devito
devito copied to clipboard
Unrecognized parameters throw error
An example below is provided for specifying derivative types. This issue is suggesting the second form bellow should throw an error, pehaps UnrecognizedParameterError
.
Correct, results in desired behavior
from devito import left, right
p.dx(side=right)
Incorrect, results in default centered behavior
p.dx(side="right")
@jkwashbourne @mloubout , is this actually a duplicate of #774 ?
@jkwashbourne @mloubout , is this actually a duplicate of #774 ?
I would say yes.
Another reason this would be useful (from #774, now closed as superseded by this issue)
for example, this would be useful to catch typos:
f = Function(name='f', ..., space_ordere=0)
execution goes through this and eventually f gets the default space_order, namely 1