#include "implicit_f.inc"
#include "spmd.inc"
#include "task_c.inc"
Go to the source code of this file.
◆ spmd_min_max()
| subroutine spmd_min_max |
( |
| x1, |
|
|
| y1, |
|
|
| z1, |
|
|
| x2, |
|
|
| y2, |
|
|
| z2 ) |
Definition at line 31 of file spmd_min_max.F.
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 IERROR
59 . tmp1(3),tmpo(3)
60
61
62
63 tmp1(1) = x1
64 tmp1(2) = y1
65 tmp1(3) = z1
67 . mpi_min,
68 . spmd_comm_world,ierror)
69 x1 = tmpo(1)
70 y1 = tmpo(2)
71 z1 = tmpo(3)
72
73 tmp1(1)=x2
74 tmp1(2)=y2
75 tmp1(3)=z2
77 . mpi_max,
78 . spmd_comm_world,ierror)
79 x2 = tmpo(1)
80 y2 = tmpo(2)
81 z2 = tmpo(3)
82
83
84#endif
85 RETURN
subroutine mpi_allreduce(sendbuf, recvbuf, cnt, datatype, operation, comm, ierr)