25 for (i = 0; i < size; i++) global[i] = var[i];
27 MPI_Allreduce((var==global?MPI_IN_PLACE:var),global,size,MPI_INT,MPI_SUM,*((MPI_Comm*)comm));
48 for (i = 0; i < size; i++) global[i] = var[i];
50 MPI_Allreduce((var==global?MPI_IN_PLACE:var),global,size,MPI_DOUBLE,MPI_SUM,*((MPI_Comm*)comm));
int MPISum_double(double *global, double *var, int size, void *comm)
int MPISum_integer(int *global, int *var, int size, void *comm)