- if(rank==0) {
- timestamp = time(NULL);
- for(int idest=1; idest<numprocs; idest++)
- MPI_Send(×tamp, 1, MPI_LONG, idest, 123, MPI_COMM_WORLD);
- }
- else if(rank>0)
- MPI_Recv(×tamp, 1, MPI_LONG, 0, 123, MPI_COMM_WORLD, &mpiStatus);
-
- out = new writeout(comargs.outdir, programid+headMaster(), rank, numprocs, timestamp);
+ out = new writeout(comargs.outdir, programid+headMaster(), rank, numprocs);