← Back to team overview

ufl team mailing list archive

Re: Improved error check for restrictions

 

On 10/14/2011 04:04 PM, Martin Sandve Alnæs wrote:
Probably exproperators.py, look for __call__ and maybe '+'.

Thanks -- so, what other types of arguments are __call__ supposed to allow?

--
Marie


Martin

On 14 October 2011 15:47, Marie E. Rognes<meg@xxxxxxxxx>  wrote:
What would be the right place to put a check on restriction arguments.

For instance, this

    from ufl import *
    V = FiniteElement("CG", "triangle", 1)
    v = TestFunction(V)
    a = v(' +')*dS

gives:

    Couldn't map 'v_{-2}' to a float, returning ufl object without
evaluation.

which is a rather confusing message for newbies.

--
Marie

_______________________________________________
Mailing list: https://launchpad.net/~ufl
Post to     : ufl@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~ufl
More help   : https://help.launchpad.net/ListHelp




References