UFL input for P1 finite elementΒΆ

We define the finite element in UFL in a separate form file P1.ufl. We define the linear finite element:

element = FiniteElement("Lagrange", triangle, 1)

Before the form file can be used in the C++ program, it must be compiled using FFC by running (on the command-line):

ffc -l dolfin P1.ufl