mpi version with t computed in main process