32
33
34
35
36
37 USE spmd_comm_world_mod, ONLY : spmd_comm_world
38#include "implicit_f.inc"
39
40
41
42#include "spmd.inc"
43
44
45
46#include "task_c.inc"
47
48
49
50
52 . x1, y1, z1, x2, y2, z2
53
54
55
56#ifdef MPI
57 INTEGER INFO,K,I,ATID,ATAG,ALEN
58
60 . tmp(6)
61
62 INTEGER STATUS(MPI_STATUS_SIZE),IERROR
63
65 . tmp1(3),tmpo(3)
66
67
68
69 tmp1(1) = x1
70 tmp1(2) = y1
71 tmp1(3) = z1
73 . mpi_min,
74 . spmd_comm_world,ierror)
75 x1 = tmpo(1)
76 y1 = tmpo(2)
77 z1 = tmpo(3)
78
79 tmp1(1)=x2
80 tmp1(2)=y2
81 tmp1(3)=z2
83 . mpi_max,
84 . spmd_comm_world,ierror)
85 x2 = tmpo(1)
86 y2 = tmpo(2)
87 z2 = tmpo(3)
88
89
90#endif
91 RETURN
subroutine mpi_allreduce(sendbuf, recvbuf, cnt, datatype, operation, comm, ierr)