mirror of
https://github.com/foxsen/archbase.git
synced 2026-04-28 20:39:48 +08:00
initial import to public repository
This commit is contained in:
7
materials/chapter10/test4.c
Normal file
7
materials/chapter10/test4.c
Normal file
@@ -0,0 +1,7 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user