devito icon indicating copy to clipboard operation
devito copied to clipboard

Unrecognized parameters throw error

Open jkwashbourne opened this issue 4 years ago • 3 comments

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 avatar Jun 09 '20 21:06 jkwashbourne

@jkwashbourne @mloubout , is this actually a duplicate of #774 ?

FabioLuporini avatar Jun 12 '20 10:06 FabioLuporini

@jkwashbourne @mloubout , is this actually a duplicate of #774 ?

I would say yes.

georgebisbas avatar Jun 17 '20 08:06 georgebisbas

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

FabioLuporini avatar Jun 17 '20 08:06 FabioLuporini