40 USE spmd_comm_world_mod,
ONLY : spmd_comm_world
41#include "implicit_f.inc"
54 INTEGER IAD_ELEM(2,*),FR_ELEM(*),ITAB(*)
61 INTEGER STATUS(MPI_STATUS_SIZE),
62 * (NSPMD),REQ_RI(NSPMD)
63 INTEGER P, LENRV, IADS(NSPMD+1), IADR(NSPMD+1), IERROR,
64 * SIZ,LOC_PROC,MSGTYP,J,L,NOD,NB,MSGOFF
66 *
DIMENSION(:),
ALLOCATABLE :: bbufs,bbufr
69 lenrv = (iad_elem(1,nspmd+1)-iad_elem(1,1))*9
70 ALLOCATE (bbufs(lenrv),bbufr(lenrv))
77 siz = (iad_elem(1,p+1)-iad_elem(1,p))*9
81 s bbufr(l),siz,real,it_spmd(p),msgtyp,
82 g spmd_comm_world,req_ri(p),ierror)
93 DO j=iad_elem(1,p),iad_elem(1,p+1)-1
95 bbufs(l ) = mtf(1,nod)
96 bbufs(l+1) = mtf(2,nod)
97 bbufs(l+2) = mtf(3,nod)
98 bbufs(l+3) = mtf(4,nod)
99 bbufs(l+4) = mtf(5,nod)
100 bbufs(l+5) = mtf(6,nod)
101 bbufs(l+6) = mtf(7,nod)
102 bbufs(l+7) = mtf(8,nod)
103 bbufs(l+8) = mtf(9,nod)
110 IF(iad_elem(1,p+1)-iad_elem(1,p)>0)
THEN
112 siz = iads(1+p)-iads(p)
115 s bbufs(l),siz,real,it_spmd(p),msgtyp,
116 g spmd_comm_world,req_si(p),ierror)
125 nb = iad_elem(1,p+1)-iad_elem(1,p)
127 CALL mpi_wait(req_ri(p),status,ierror)
129 DO j=iad_elem(1,p),iad_elem(1,p+1)-1
131 mtf(1,nod)=mtf(1,nod)+bbufr(l)
132 mtf(2,nod)=mtf(2,nod)+bbufr(l+1)
133 mtf(3,nod)=mtf(3,nod)+bbufr(l+2)
134 mtf(4,nod)=mtf(4,nod)+bbufr(l+3)
135 mtf(5,nod)=mtf(5,nod)+bbufr(l+4)
136 mtf(6,nod)=mtf(6,nod)+bbufr(l+5)
137 mtf(7,nod)=mtf(7,nod)+bbufr(l+6)
138 mtf(8,nod)=mtf(8,nod)+bbufr(l+7)
139 mtf(9,nod)=mtf(9,nod)+bbufr(l+8)
146 siz=iads(p+1)-iads(p)
148 CALL mpi_wait(req_si(p),status,ierror)