ffc team mailing list archive
-
ffc team
-
Mailing list archive
-
Message #02909
[Bug 426498] [NEW] UFL Variable not supported
Public bug reported:
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.
** Affects: ffc
Importance: Medium
Status: New
** Changed in: ffc
Importance: Undecided => Medium
--
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: New
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.
Follow ups
References