#include "implicit_f.inc"
#include "spmd.inc"
#include "task_c.inc"
Go to the source code of this file.
◆ spmd_glob_imax9()
| subroutine spmd_glob_imax9 |
( |
integer, dimension(len) | v, |
|
|
integer | len ) |
Definition at line 35 of file spmd_glob_imax9.F.
36
37
38
39
40 USE spmd_comm_world_mod, ONLY : spmd_comm_world
41#include "implicit_f.inc"
42
43
44
45#include "spmd.inc"
46
47
48
49#include "task_c.inc"
50
51
52
53 INTEGER LEN, V(LEN)
54
55
56
57#ifdef MPI
58 INTEGER I,IERROR,
59 . VTMP(LEN)
60
61
62
63 IF (len > 0) THEN
65 . mpi_integer,mpi_max,it_spmd(1),
66 . spmd_comm_world,ierror)
67 ENDIF
68 IF (ispmd==0) THEN
69 DO i=1,len
70 v(i) = vtmp(i)
71 END DO
72 ENDIF
73
74#endif
75 RETURN
subroutine mpi_reduce(sendbuf, recvbuf, cnt, datatype, op, root, comm, ierr)