HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
MPIBroadcast.c
Go to the documentation of this file.
1 
6 #include <mpivars.h>
7 
10  double *x,
11  int size,
12  int root,
13  void *comm
14  )
15 {
16 #ifndef serial
17  MPI_Bcast(x,size,MPI_DOUBLE,root,*((MPI_Comm*)comm));
18 #endif
19  return(0);
20 }
21 
24  int *x,
25  int size,
26  int root,
27  void *comm
28  )
29 {
30 #ifndef serial
31  MPI_Bcast(x,size,MPI_INT,root,*((MPI_Comm*)comm));
32 #endif
33  return(0);
34 }
35 
38  char *x,
39  int size,
40  int root,
41  void *comm
42  )
43 {
44 #ifndef serial
45  MPI_Bcast(x,size,MPI_CHAR,root,*((MPI_Comm*)comm));
46 #endif
47  return(0);
48 }
MPI related function definitions.
int MPIBroadcast_integer(int *x, int size, int root, void *comm)
Definition: MPIBroadcast.c:23
int MPIBroadcast_double(double *x, int size, int root, void *comm)
Definition: MPIBroadcast.c:9
int MPIBroadcast_character(char *x, int size, int root, void *comm)
Definition: MPIBroadcast.c:37