33
34
35
37 USE spmd_mod
38
39
40
41#include "implicit_f.inc"
42
43
44
45#include "spmd.inc"
46
47
48
49#include "com01_c.inc"
50#include "param_c.inc"
51#include "task_c.inc"
52
53
54
55#ifdef MPI
56 INTEGER, DIMENSION(:),ALLOCATABLE :: PLYNODTAG,SENDBUF,RECBUF
57 INTEGER MAXSENDSZ,RECSZ,PLYSZ
58 INTEGER I,J,P,ND, ITAG, IDCMAXP(NSPMD-1), REQ(NSPMD-1),NODCOUNT
59 INTEGER MSGOFF,MSGOFF2,STAT(MPI_STATUS_SIZE,NSPMD-1), IERR
60
61 DATA msgoff/7054/
62
63
64
65
66 IF (ispmd==0)THEN
69 ELSE
71 ENDIF
73
74
75
76
77
78 DO i=1,nplymax
79 IF (ispmd==0)THEN
80
81 DO p=2,nspmd
82 itag=msgoff
83 CALL mpi_recv(recsz,1, mpi_integer, it_spmd(p),
84 . itag, spmd_comm_world, stat, ierr)
86 ENDDO
87 ELSE
88 itag=msgoff
90 . itag,spmd_comm_world,ierr)
91 ENDIF
92 ENDDO
93
94
95#endif
96 RETURN
subroutine mpi_recv(buf, cnt, datatype, source, tag, comm, status, ierr)
subroutine mpi_send(buf, cnt, datatype, dest, tag, comm, ierr)
type(plynods), dimension(:), allocatable plynod
integer, dimension(:,:), allocatable plyiadnod