ufl team mailing list archive
-
ufl team
-
Mailing list archive
-
Message #02039
Re: Improved error check for restrictions
Probably exproperators.py, look for __call__ and maybe '+'.
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
>
Follow ups
References