ufl team mailing list archive
-
ufl team
-
Mailing list archive
-
Message #02038
Improved error check for restrictions
-
To:
ufl@xxxxxxxxxxxxxxxxxxx
-
From:
"Marie E. Rognes" <meg@xxxxxxxxx>
-
Date:
Fri, 14 Oct 2011 15:47:27 +0200
-
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
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