1
1

Put in a check to ensure the root is valid (all other rooted

operations have this; we somehow missed this for intracomms on reduce,
and it bit me this morning ;-) )

This commit was SVN r7612.
Этот коммит содержится в:
Jeff Squyres 2005-10-04 14:38:17 +00:00
родитель 3b4a134a24
Коммит 94bab558dd

Просмотреть файл

@ -68,6 +68,14 @@ int MPI_Reduce(void *sendbuf, void *recvbuf, int count,
return OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_ROOT, FUNC_NAME);
}
}
/* Intracommunicator errors */
else {
if (root < 0 || root >= ompi_comm_size(comm)) {
return OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_ROOT, FUNC_NAME);
}
}
}
/* MPI-1, p114, says that each process must supply at least