Fix issues with the actual spm in order to make it works in distributed
This PR fixes minor issues that were not impacting the library in the shared memory case, but that would have a large impact on the distributed case.
- Add a spmInitDist() function to initialize an spm with a specific communicator (MPI_COMM_WORLD by default)
- Add a function to compute the glob2loc array when needed.
Edited by Mathieu Faverge