When I try the following code for parallel computing with mpirun. I get the error message like “ValueError: cannot reshape array of size 13677 into shape (9261,3)” for the last line of the code. It works fine when parallel computing is not used, but it seems tabulate_dof_coordinates() gives wrong output for parallel computing.
The output is as expected, as the degrees of freedom are distributed on different processors, and therefore you can’t use the global mesh dimension. Why do you need to reshape the dofs?
Most things in dolfin work naturally in parallel. It depends on what you want to do with the dog coordinates. In general, you can use MPI4PY to scatter and gather data.