Hi Lawrence,
Thank you so much for your help. Here are the output of the commands:
(firedrake) simone@simone:~/firedrake/src/firedrake$ mpiexec -n 4 python -c "from mpi4py import MPI; print(MPI.COMM_WORLD.rank)"
1
3
2
0
(firedrake) simone@simone:~/firedrake/src/firedrake$ mpiexec -n 4 python -c "from petsc4py import PETSc; print(PETSc.COMM_WORLD.rank)"
0
3
1
2
(firedrake) simone@simone:~/firedrake/src/firedrake$ mpiexec -n 4 python -c "from firedrake import *; mesh = UnitSquareMesh(3, 3); mesh.init(); print(mesh.comm.rank)"
0
1
2
3
Thank you so much, have a wonderful day.
Best regards,
Simone