Hello,
with the latest dolfinx (docker image from today), I realized that there must have been some change to Quadrature function spaces. If I now want to create a function space on a Quadrature element, i.e.
#!/usr/bin/env python3
from dolfinx import BoxMesh, FunctionSpace, VectorFunctionSpace, Function
from dolfinx.io import XDMFFile
import dolfinx.cpp.mesh
from mpi4py import MPI
import numpy as np
from ufl import TrialFunction, TestFunction, FiniteElement, VectorElement, TensorElement
comm = MPI.COMM_WORLD
mesh = BoxMesh(comm, [np.array([0.0, 0.0, 0.0]),np.array([2.0, 1.0, 1.0])], [5, 5, 5],
dolfinx.cpp.mesh.CellType.tetrahedron, dolfinx.cpp.mesh.GhostMode.none)
P_q = FiniteElement("Quadrature", mesh.ufl_cell(), 1)
V_q = FunctionSpace(mesh, P_q)
I get a RuntimeError: Can’t find name Quadrature. However, the ufl type “Quadrature” still exists, so the FiniteElement command works.
Has the syntax for this changed? And, would it be equivalent to use a DG space instead, i.e.
FunctionSpace(mesh, ("DG", 0))
?
Thanks for any help!
Best,
Marc