← Back to team overview

ufl team mailing list archive

Improved error check for restrictions

 


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


Follow ups