} s_smpi_mpi_communicator_t;
static int smpi_compare_rankmap(const void *a, const void *b)
} s_smpi_mpi_communicator_t;
static int smpi_compare_rankmap(const void *a, const void *b)
comm = xbt_new(s_smpi_mpi_communicator_t, 1);
comm->group = group;
smpi_group_use(comm->group);
comm = xbt_new(s_smpi_mpi_communicator_t, 1);
comm->group = group;
smpi_group_use(comm->group);
int index, rank, size, i, j, count, reqs;
int* sendbuf;
int* recvbuf;
int index, rank, size, i, j, count, reqs;
int* sendbuf;
int* recvbuf;
index = smpi_group_index(group, rankmap[2 * j]);
smpi_group_set_mapping(group_out, index, j);
}
index = smpi_group_index(group, rankmap[2 * j]);
smpi_group_set_mapping(group_out, index, j);
}
} else {
if(color != MPI_UNDEFINED) {
smpi_mpi_recv(&group_out, 1, MPI_PTR, 0, system_tag, comm, MPI_STATUS_IGNORE);
} else {
if(color != MPI_UNDEFINED) {
smpi_mpi_recv(&group_out, 1, MPI_PTR, 0, system_tag, comm, MPI_STATUS_IGNORE);
} /* otherwise, exit with group_out == NULL */
}
return group_out ? smpi_comm_new(group_out) : MPI_COMM_NULL;
}
} /* otherwise, exit with group_out == NULL */
}
return group_out ? smpi_comm_new(group_out) : MPI_COMM_NULL;
}