OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_split_comm.F File Reference
#include "implicit_f.inc"
#include "spmd.inc"
#include "task_c.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_split_comm (isactive, comm_local)

Function/Subroutine Documentation

◆ spmd_split_comm()

subroutine spmd_split_comm ( integer isactive,
integer comm_local )

Definition at line 32 of file spmd_split_comm.F.

33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36 USE spmd_comm_world_mod, ONLY : spmd_comm_world
37#include "implicit_f.inc"
38C-----------------------------------------------------------------
39C M e s s a g e P a s s i n g
40C-----------------------------------------------
41#include "spmd.inc"
42C-----------------------------------------------
43C C o m m o n B l o c k s
44C-----------------------------------------------
45#include "task_c.inc"
46C-----------------------------------------------
47C D u m m y A r g u m e n t s
48C-----------------------------------------------
49 INTEGER ISACTIVE, COMM_LOCAL
50C-----------------------------------------------
51C L o c a l V a r i a b l e s
52C-----------------------------------------------
53#ifdef MPI
54 INTEGER IVAL, IERROR
55C-----------------------------------------------
56C S o u r c e L i n e s
57C-----------------------------------------------
58C
59 ival=isactive
60 IF(isactive > 0) THEN
61 ival = 1
62 ELSE
63 ival = mpi_undefined ! if not concerned by this communication set to undefined communicator
64 END IF
65 CALL mpi_comm_split(spmd_comm_world, ival, ispmd+1, comm_local, ierror)
66C IF(IVAL /=0) CALL MPI_Comm_Free(contcomm, ierror) ! only where new communicator is created (ie not MPI_UNDEFINED)
67
68#endif
69 RETURN
subroutine mpi_comm_split(comm, color, key, comm2, ierr)
Definition mpi.f:272