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

Function/Subroutine Documentation

◆ spmd_rbcast()

subroutine spmd_rbcast ( tabi,
tabr,
integer n1,
integer n2,
integer from,
integer add )

Definition at line 61 of file spmd_rbcast.F.

62C-----------------------------------------------
63C I m p l i c i t T y p e s
64C-----------------------------------------------
65 USE spmd_comm_world_mod, ONLY : spmd_comm_world
66#include "implicit_f.inc"
67C-----------------------------------------------------------------
68C M e s s a g e P a s s i n g
69C-----------------------------------------------
70#include "spmd.inc"
71C-----------------------------------------------
72C C o m m o n B l o c k s
73C-----------------------------------------------
74#include "task_c.inc"
75C-----------------------------------------------
76C D u m m y A r g u m e n t s
77C-----------------------------------------------
78 INTEGER N1,N2,FROM,ADD
79 my_real tabi(n1*n2),tabr(n1*n2)
80C-----------------------------------------------
81C L o c a l V a r i a b l e s
82C-----------------------------------------------
83#ifdef MPI
84 INTEGER INFO,MSGOFF
85 INTEGER K
86 INTEGER STATUS(MPI_STATUS_SIZE),IERROR
87C-----------------------------------------------
88C S o u r c e L i n e s
89C-----------------------------------------------
90
91C si FROM = 0 ADD = 2 broadcast depuis 0 sur les autres
92C si FROM = NSPMD ADD = 1 de NSPMD sur les autres
93
94 IF(ispmd==from)THEN
95 call mpi_bcast(tabi,n1*n2,real,from,
96 . spmd_comm_world,ierror)
97 ELSE
98 call mpi_bcast(tabr,n1*n2,real,from,
99 . spmd_comm_world,ierror)
100 ENDIF
101
102#endif
103 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine mpi_bcast(buffer, cnt, datatype, root, comm, ierr)
Definition mpi.f:205