OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_ibcast.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_ibcast (tabi, tabr, n1, n2, from, add)

Function/Subroutine Documentation

◆ spmd_ibcast()

subroutine spmd_ibcast ( integer, dimension(n1*n2) tabi,
integer, dimension(n1*n2) tabr,
integer n1,
integer n2,
integer from,
integer add )

Definition at line 56 of file spmd_ibcast.F.

57C-----------------------------------------------
58C I m p l i c i t T y p e s
59C-----------------------------------------------
60 USE spmd_comm_world_mod, ONLY : spmd_comm_world
61#include "implicit_f.inc"
62C-----------------------------------------------------------------
63C M e s s a g e P a s s i n g
64C-----------------------------------------------
65#include "spmd.inc"
66C-----------------------------------------------
67C C o m m o n B l o c k s
68C-----------------------------------------------
69#include "task_c.inc"
70C-----------------------------------------------
71C D u m m y A r g u m e n t s
72C-----------------------------------------------
73 INTEGER N1,N2,FROM,ADD
74 INTEGER TABI(N1*N2),TABR(N1*N2)
75C-----------------------------------------------
76C L o c a l V a r i a b l e s
77C-----------------------------------------------
78#ifdef MPI
79 INTEGER IERROR
80C-----------------------------------------------
81C S o u r c e L i n e s
82C-----------------------------------------------
83
84C If from = 0 Add = 2 Broadcast since 0 on the others
85C if FROM = NSPMD ADD = 1 from NSPMD on others
86
87 IF(ispmd==from)THEN
88 call mpi_bcast(tabi,n1*n2,mpi_integer,from,
89 . spmd_comm_world,ierror)
90 ELSE
91 call mpi_bcast(tabr,n1*n2,mpi_integer,from,
92 . spmd_comm_world,ierror)
93 ENDIF
94
95#endif
96 RETURN
subroutine mpi_bcast(buffer, cnt, datatype, root, comm, ierr)
Definition mpi.f:205