Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program test
- include 'mpif.h'
- integer ierr, tid, tmp
- call MPI_INIT(ierr)
- call MPI_COMM_RANK(MPI_COMM_WORLD, tid, ierr)
- tmp = tid
- if(tid.eq.0) then
- call MPI_BCAST(tmp,1,MPI_INTEGER,MPI_ROOT,MPI_COMM_WORLD, ierr)
- else
- endif
- write(*,*) tid,'done'
- call MPI_FINALIZE(ierr)
- end
- 1 done 0
- 0 done 0
Add Comment
Please, Sign In to add comment