mpi for meanfield