ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #02914
[Bug 426498] Re: UFL Variable not supported
** Changed in: ffc
Status: New => Confirmed
--
UFL Variable not supported
https://bugs.launchpad.net/bugs/426498
You received this bug notification because you are subscribed to FFC.
Status in FEniCS Form Compiler: Confirmed
Bug description:
To reproduce this bug, try compiling the hyperelasticity demo in UFL:
ffc HyperElasticity.ufl
Gives the following error message:
Visiting Variable: Variable(Sum(IntValue(1, (), (), {}), SpatialDerivative(Indexed(Function(VectorElement('Lagrange', Cell('tetrahedron', 1, Space(3)), 2, 3), 0), MultiIndex((FixedIndex(0),), {FixedIndex(0): 3})), MultiIndex((FixedIndex(0),), {}))), Label(0))
Variable is not supported (yet).
*** FFC: Variable is not supported (yet).
*** FFC: To get more information about this error, rerun FFC with --debug.
Fix suggested by Martin:
You can either just treat a variable v as if it were v.expression(),
or call "form = strip_variables(form)" to get rid of them.
References