OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_rbcast_subcomm.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_subcomm (buffer, n, from, comm)

Function/Subroutine Documentation

◆ spmd_rbcast_subcomm()

subroutine spmd_rbcast_subcomm ( buffer,
integer n,
integer from,
integer comm )

Definition at line 31 of file spmd_rbcast_subcomm.F.

32C Wrapper to MPI_BCAST for REAL
33C-----------------------------------------------
34C I m p l i c i t T y p e s
35C-----------------------------------------------
36#include "implicit_f.inc"
37C-----------------------------------------------------------------
38C M e s s a g e P a s s i n g
39C-----------------------------------------------
40#include "spmd.inc"
41C-----------------------------------------------
42C C o m m o n B l o c k s
43C-----------------------------------------------
44#include "task_c.inc"
45C-----------------------------------------------
46C D u m m y A r g u m e n t s
47C-----------------------------------------------
48 INTEGER N ! size of the buffer
49 INTEGER FROM ! source
50 INTEGER COMM ! communicator
51 my_real buffer(n)
52C-----------------------------------------------
53C L o c a l V a r i a b l e s
54C-----------------------------------------------
55#ifdef MPI
56 INTEGER STATUS(MPI_STATUS_SIZE),IERROR
57C-----------------------------------------------
58C S o u r c e L i n e s
59C-----------------------------------------------
60
61
62 IF( comm /= mpi_comm_null) THEN
63 CALL mpi_bcast(buffer,n,real,from,
64 . comm,ierror)
65 ENDIF
66
67#endif
68 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine mpi_bcast(buffer, cnt, datatype, root, comm, ierr)
Definition mpi.f:205