HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
mpivars_struct.h
Go to the documentation of this file.
1 
6 #ifndef _MPIVARS_STRUCT_H_
7 #define _MPIVARS_STRUCT_H_
8 
9 #ifndef serial
10 #include <mpi.h>
11 #endif
12 
24 typedef struct mpi_variables {
25  int rank;
26  int nproc;
27  int *iproc;
28  int *ip;
29  int *is,
30  *ie;
31  int *bcperiodic;
33 #ifdef serial
34  int world; /* Dummy variable */
35  int *comm; /* Dummy variable */
36 #else
37  MPI_Comm world;
38  MPI_Comm *comm;
39 #endif
40 
41  int N_IORanks;
43  int CommGroup;
44  int IORank ;
47 #ifndef serial
48  MPI_Comm IOWorld;
49 #endif
50 
51  double *sendbuf,
52  *recvbuf;
53  int maxbuf;
55 #if defined(HAVE_CUDA)
56  int ncalls;
57  double wctime;
58  double wctime_total;
59  int *cpu_dim;
60  double *gpu_sendbuf,
61  *gpu_recvbuf;
62 #endif
63 } MPIVariables;
64 
65 #endif
MPI_Comm * comm
double * sendbuf
double * gpu_sendbuf
MPI_Comm world
double wctime_total
MPI_Comm IOWorld
Structure of MPI-related variables.