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 INFO,MSGOFF
80 INTEGER K
81 INTEGER STATUS(MPI_STATUS_SIZE),IERROR
82C-----------------------------------------------
83C S o u r c e L i n e s
84C-----------------------------------------------
85
86C si FROM = 0 ADD = 2 broadcast depuis 0 sur les autres
87C si FROM = NSPMD ADD = 1 de NSPMD sur les autres
88
89 IF(ispmd==from)THEN
90 call mpi_bcast(tabi,n1*n2,mpi_integer,from,
91 . spmd_comm_world,ierror)
92 ELSE
93 call mpi_bcast(tabr,n1*n2,mpi_integer,from,
94 . spmd_comm_world,ierror)
95 ENDIF
96
97#endif
98 RETURN
subroutine mpi_bcast(buffer, cnt, datatype, root, comm, ierr)
Definition mpi.f:205