34
35
36
38
39
40
41 USE spmd_comm_world_mod, ONLY : spmd_comm_world
42#include "implicit_f.inc"
43
44
45
46#include "spmd.inc"
47
48
49
50#include "task_c.inc"
51
52
53
54 INTEGER FVOFF(2,*), IDMAX, NFVNOD
55
56
57
58#ifdef MPI
59 INTEGER I, PMAIN, J, JJ, ITAG, MSGOFF, STAT(MPI_STATUS_SIZE),
60 . IERR, NNS_ANIM
61
62 DATA msgoff/7050/
63
64
67 IF (ispmd==0) THEN
68 IF (ispmd==pmain-1) THEN
70 jj=fvoff(2,i)+j
72 ENDDO
73 ELSE
74 itag=msgoff
75 CALL mpi_recv(nns_anim, 1, mpi_integer, it_spmd(pmain),
76 . itag, spmd_comm_world, stat, ierr)
77
78 DO j=1,nns_anim
79 jj=fvoff(2,i)+j
81 ENDDO
82 ENDIF
83 ELSE
84 IF (ispmd==pmain-1) THEN
85 itag=msgoff
87 . it_spmd(1), itag, spmd_comm_world,
88 . ierr)
89 ENDIF
90 ENDIF
91 ENDDO
92
93 IF (ispmd==0) THEN
97 ENDIF
98
99#endif
100 RETURN
subroutine mpi_recv(buf, cnt, datatype, source, tag, comm, status, ierr)
subroutine mpi_send(buf, cnt, datatype, dest, tag, comm, ierr)
type(fvbag_spmd), dimension(:), allocatable fvspmd
type(fvbag_data), dimension(:), allocatable fvdata
void write_i_c(int *w, int *len)