|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Functions to compute the sum across MPI ranks. More...
#include <mpi.h>Go to the source code of this file.
Functions | |
| int | MPISum_integer (int *global, int *var, int size, void *comm) |
| int | MPISum_double (double *global, double *var, int size, void *comm) |
Functions to compute the sum across MPI ranks.
Definition in file MPISum.c.
| int MPISum_integer | ( | int * | global, |
| int * | var, | ||
| int | size, | ||
| void * | comm | ||
| ) |
Compute the global sum over all MPI ranks in a given communicator for int datatype.
| global | array to contain the global sums |
| var | the local array |
| size | size of the local array |
| comm | MPI communicator |
| int MPISum_double | ( | double * | global, |
| double * | var, | ||
| int | size, | ||
| void * | comm | ||
| ) |
Compute the global sum over all MPI ranks in a given communicator for double datatype.
| global | array to contain the global sums |
| var | the local array |
| size | size of the local array |
| comm | MPI communicator |