Changed float to int in mpi