Dear all,
Considering a DG0 space, I have been surprised to observe that the following code:
mesh = RectangleMesh(-1, -1, 1, 1, 5, 5)
V = FunctionSpace(mesh, 'DG', 0)
dofmap = V.dofmap()
...
for cell_no in range(mesh.num_cells()):
print dofmap.cell_dofs(cell_no), dofmap.dofs()[cell_no]
# first: print the global index of the dof associated to the cell of local index cell_no
# second: print the global index of the dof associated to the dof of local index cell_no
prints 2 different results if more than 1 processor is used.
In other words, the local index of a dof differs from the local index of the cell containing that dof... (even though there is a 1 on 1 relationship)
What would then be the way to determine one from the other?
I'm convinced that with the solution to this problem, I will be able to solve my previous question
Any help would be appreciated!