41 USE spmd_comm_world_mod,
ONLY : spmd_comm_world
42#include "implicit_f.inc"
64 INTEGER K1, KK1, KIBALE, KRBALE, IFV, N, ITYP, PMAIN, NN, NTG,
65 . ITAG, MSGOFF, LEN, IERR, STAT(MPI_STATUS_SIZE), IAD,
68 . ,
DIMENSION(:),
ALLOCATABLE :: rbuf
73 kibale=1+nimv*nvolu+licbag+libagjet+libaghol
74 krbale=1+nrvolu*nvolu+lrcbag+lrbagjet+lrbaghol
78 IF (ityp==6.OR.ityp==8)
THEN
83 nn =monvol(k1-1+32)+monvol(k1-1+68)
84 ntg=monvol(k1-1+33)+monvol(k1-1+69)
90 CALL mpi_recv(rbuf, len, real, it_spmd(pmain),
91 . msgtag, spmd_comm_world, stat, ierr)
93 iad=krbale+monvol(k1-1+34)
95 volmon(iad+i-1)=rbuf(i)
99 volmon(iad+i-1)=rbuf(6*nn+i)
101 ELSEIF (ispmd==pmain-1)
THEN
103 iad=krbale+monvol(k1-1+34)
105 rbuf(i)=volmon(iad+i-1)
109 rbuf(6*nn+i)=volmon(iad+i-1)
112 CALL mpi_send(rbuf, len, real, it_spmd(1),
113 . msgtag, spmd_comm_world, ierr)
subroutine mpi_recv(buf, cnt, datatype, source, tag, comm, status, ierr)
subroutine mpi_send(buf, cnt, datatype, dest, tag, comm, ierr)