#include "implicit_f.inc"
#include "spmd.inc"
Go to the source code of this file.
◆ spmd_comm_split()
| subroutine spmd_comm_split |
( |
integer | color, |
|
|
integer | key, |
|
|
integer | subcomm, |
|
|
integer | rank, |
|
|
integer | size_l ) |
Definition at line 32 of file spmd_comm_split.F.
33
34
35
36
37
38
39 USE spmd_comm_world_mod, ONLY : spmd_comm_world
40#include "implicit_f.inc"
41
42
43
44#include "spmd.inc"
45
46
47
48 INTEGER COMM
49 INTEGER SUBCOMM
50 INTEGER RANK
51 INTEGER SIZE_L
52 INTEGER COLOR,KEY
53
54
55
56#ifdef MPI
57 INTEGER STATUS(MPI_STATUS_SIZE),IERROR
58
59
60
63 IF(color > 0) THEN
66 ELSE
67 rank = -1
68 subcomm = mpi_comm_null
69 ENDIF
71
72
73#endif
74 RETURN
subroutine mpi_comm_split(comm, color, key, comm2, ierr)
subroutine mpi_barrier(comm, ierr)
subroutine mpi_comm_size(comm, size, ierr)
subroutine mpi_comm_rank(comm, rank, ierr)