Hello,
I am trying to run the following code:
domain = mesh.create_rectangle(MPI.COMM_WORLD, [np.array([0, 0]), np.array([1, 1])],[nx, ny], mesh.CellType.triangle)
W = fem.FunctionSpace(domain, ("CG", 1))
n = FacetNormal(domain)
print(W.dim())
the last command should give me the number of degrees of freedom, but instead I get the following error:
AttributeError: 'FunctionSpaceBase' object has no attribute 'dim'
I have installed Fenicsx with conda.
Thanks for the help,
Michele.