Skip to content
Snippets Groups Projects
Commit 30dcab13 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Register PDELab finite elements into UFL

parent 2ccff869
No related branches found
No related tags found
No related merge requests found
...@@ -10,3 +10,6 @@ import dune.codegen.loopy.symbolic # noqa ...@@ -10,3 +10,6 @@ import dune.codegen.loopy.symbolic # noqa
import dune.codegen.pdelab # noqa import dune.codegen.pdelab # noqa
import dune.codegen.sumfact # noqa import dune.codegen.sumfact # noqa
import dune.codegen.blockstructured # noqa import dune.codegen.blockstructured # noqa
# Trigger imports that register finite elements in UFL
import dune.codegen.ufl.finiteelement # noqa
""" Registering finite elements that we have, but FEniCS does not """
from ufl import register_element, L2
register_element("Discontinuous Gauss-Lobatto-Legendre",
"DGLL",
0,
L2,
"identity",
(0, None),
('interval',),
)
register_element("Monomials",
"Monom",
0,
L2,
"identity",
(0, None),
('interval',),
)
register_element("L2-Orthonormal Polynomials",
"OPB",
0,
L2,
"identity",
(0, None),
('interval',),
)
register_element("Rannacher-Turek",
"RaTu",
0,
L2,
"identity",
(1, 1),
('quadrilateral', 'hexahedron'),
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment