1
1
mirror of https://github.com/foxsen/archbase.git synced 2026-02-04 19:04:32 +08:00
Files
2021-10-27 19:14:51 +08:00

8 lines
208 B
C

If(mypid==0) {
MPI_Bcast(buf0,count,type,0,comm,ierr);
MPI_Send(buf1,count,type,1,tag,comm,ierr);
} else {
MPI_Recv(buf1,count,type,0,tag,comm,ierr);
MPI_Bcast(buf0,count,type,0,comm,ierr);
}