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 IERROR
85C-----------------------------------------------
86C S o u r c e L i n e s
87C-----------------------------------------------
88
89C If from = 0 Add = 2 Broadcast since 0 on the others
90C if FROM = NSPMD ADD = 1 from NSPMD on others
91
92 IF(ispmd==from)THEN
93 call mpi_bcast(tabi,n1*n2,real,from,
94 . spmd_comm_world,ierror)
95 ELSE
96 call mpi_bcast(tabr,n1*n2,real,from,
97 . spmd_comm_world,ierror)
98 ENDIF
99
100#endif
101 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine mpi_bcast(buffer, cnt, datatype, root, comm, ierr)
Definition mpi.f:205