24 for (i = 0; i < size; i++) global[i] = var[i];
26 MPI_Allreduce((var==global?MPI_IN_PLACE:var),global,size,MPI_INT,MPI_MAX,*((MPI_Comm*)comm));
47 for (i = 0; i < size; i++) global[i] = var[i];
49 MPI_Allreduce((var==global?MPI_IN_PLACE:var),global,size,MPI_DOUBLE,MPI_MAX,*((MPI_Comm*)comm));
MPI related function definitions.
int MPIMax_integer(int *global, int *var, int size, void *comm)
int MPIMax_double(double *global, double *var, int size, void *comm)