OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
spmd_ibcast_subcomm.F File Reference
#include "implicit_f.inc"
#include "spmd.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine spmd_ibcast_subcomm (buffer, n, from, comm)

Function/Subroutine Documentation

◆ spmd_ibcast_subcomm()

subroutine spmd_ibcast_subcomm ( integer, dimension(n) buffer,
integer n,
integer from,
integer comm )

Definition at line 29 of file spmd_ibcast_subcomm.F.

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