UFL input for the auto adaptive Poisson problemΒΆ
UFL code:
element = FiniteElement("CG", triangle, 1)
u = TrialFunction(element)
v = TestFunction(element)
f = Coefficient(element)
g = Coefficient(element)
a = dot(grad(u), grad(v))*dx()
L = f*v*dx() + g*v*ds()
M = u*dx()
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 -e AdaptivePoisson.ufl
Parameter -e ensures that a code for forms used for error control
is generated.