Currently, from mpi.h #define MPI_UNWEIGHTED ((void *) 2) /* unweighted graph */ #define MPI_WEIGHTS_EMPTY ((void *) 3) /* empty weights */
However, according to the MPI-3.1 standard (page 680), they should be #define MPI_UNWEIGHTED ((int *) 2) /* unweighted graph */ #define MPI_WEIGHTS_EMPTY ((int *) 3) /* empty weights */ PS: While the current definition is kind of harmless for C, it is likely wrong for C++. -- Lisandro Dalcin ============ Research Scientist Computer, Electrical and Mathematical Sciences & Engineering (CEMSE) Extreme Computing Research Center (ECRC) King Abdullah University of Science and Technology (KAUST) http://ecrc.kaust.edu.sa/ 4700 King Abdullah University of Science and Technology al-Khawarizmi Bldg (Bldg 1), Office # 4332 Thuwal 23955-6900, Kingdom of Saudi Arabia http://www.kaust.edu.sa Office Phone: +966 12 808-0459