The length of the ranks-arrays can be longer than the size of the according
groups. And zero is also an acceptable value according to the MPI spec. Fixes trac:428 This commit was SVN r11841. The following Trac tickets were found above: Ticket 428 --> https://svn.open-mpi.org/trac/ompi/ticket/428
Этот коммит содержится в:
родитель
afa7f53d43
Коммит
4dafe7ce0d
@ -46,7 +46,7 @@ int MPI_Group_translate_ranks(MPI_Group group1, int n_ranks, int *ranks1,
|
||||
return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_GROUP,
|
||||
FUNC_NAME);
|
||||
}
|
||||
if( (n_ranks > group1->grp_proc_count) || (0 >= n_ranks) ){
|
||||
if( 0 > n_ranks ){
|
||||
return OMPI_ERRHANDLER_INVOKE(MPI_COMM_WORLD, MPI_ERR_GROUP,
|
||||
FUNC_NAME);
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user