41 USE spmd_comm_world_mod,
ONLY : spmd_comm_world
42#include "implicit_f.inc"
55 INTEGER I, PMAIN, J, ITAG, MSGOFF, STAT(MPI_STATUS_SIZE),
56 . IERR, LEN, NNS_ANIM, JJ,MSGOFF2
58 . ,
DIMENSION(:),
ALLOCATABLE :: rbuf
68 IF (ispmd==pmain-1)
THEN
79 CALL mpi_recv(nns_anim, 1, mpi_integer,
80 . it_spmd(pmain), itag, spmd_comm_world,
86 CALL mpi_recv(rbuf, len, real, it_spmd(pmain),
87 . itag, spmd_comm_world, stat, ierr)
96 IF (ispmd==pmain-1)
THEN
99 . it_spmd(1), itag, spmd_comm_world,
107 rbuf(jj)=
fvdata(i)%NOD_ANIM(1,j)
109 rbuf(jj)=
fvdata(i)%NOD_ANIM(2,j)
111 rbuf(jj)=
fvdata(i)%NOD_ANIM(3,j)
114 CALL mpi_send(rbuf, len, real, it_spmd(1),
115 . itag, 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)