Error in Fenics Code based on cell type

Hello everyone!

Can someone tell me what is wrong with this code?

import dolfinx
from mpi4py import MPI
import dolfinx.io
import ufl
import numpy as np
mesh = dolfinx.mesh.create_unit_square(MPI.COMM_WORLD, 10, 10)
V1 = ufl.FiniteElement(“CG”, mesh.ufl_cell(), 1)
R1 = ufl.FiniteElement(“Real”, mesh.ufl_cell(), 0)

mel = ufl.MixedElement([V1, R1])

V = dolfinx.fem.FunctionSpace(mesh, mel)

This is the error I am getting

ValueError: Unknown element family: Real with cell type triangle

Maybe it works if you change “Real” to “R” ?

https://fenicsproject.org/olddocs/dolfin/1.4.0/python/programmers-reference/functions/functionspace/FunctionSpace.html

DOLFINx does currently not support the Real element, ref: Implement global support dofs · Issue #1983 · FEniCS/dolfinx · GitHub

Thank you for the information.