mpi for HamiltonianConnection
HamiltonianConnection: fixed for mpi