This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

problems with ufl

0 votes

Hi,

I am trying to test the very simple demo Poisson from Fenics. The ufl is

element = FiniteElement("Lagrange", triangle, 1)
u = TrialFunction(element)
v = TestFunction(element)
f = Coefficient(element)
g = Coefficient(element)
a = inner(grad(u), grad(v))*dx
L = f*v*dx + g*v*ds

After compiling the Poisson.ufl file via

ffc -l dolfin Poisson.ufl

I get these bugs in the Poisson.h file:

'enabled' is ambiguous ' Candidates are: vector(std::initializer_list, const std::allocator &)
vector(unsigned long int, const std::allocator &) '

'position' is ambiguous ' Candidates are: vector(std::initializer_list, const std::allocator &) vector(unsigned long int, const std::allocator &) '

What is the problem? What did I do wrong?

I would be very thankful for any help.

frieder

closed with the note: Please use fenics-support@googlegoups.com.
asked Feb 1, 2016 by frieder FEniCS Novice (340 points)
closed Feb 23, 2016 by Garth N. Wells

That must happen when compiling a code. Is that demo/documented/poisson/cpp/main.cpp? How do invoke the compiler? Possibly it could be a version mismatch between FFC and DOLFIN.

...