A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
these assertions were a bit strong
[simgrid.git]
/
src
/
smpi
/
smpi_group.c
diff --git
a/src/smpi/smpi_group.c
b/src/smpi/smpi_group.c
index
587ab1d
..
921f719
100644
(file)
--- a/
src/smpi/smpi_group.c
+++ b/
src/smpi/smpi_group.c
@@
-30,7
+30,7
@@
MPI_Group smpi_group_new(int size)
MPI_Group group;
int i, count;
MPI_Group group;
int i, count;
- count =
smpi
_process_count();
+ count =
SIMIX
_process_count();
group = xbt_new(s_smpi_mpi_group_t, 1);
group->size = size;
group->rank_to_index_map = xbt_new(int, size);
group = xbt_new(s_smpi_mpi_group_t, 1);
group->size = size;
group->rank_to_index_map = xbt_new(int, size);
@@
-84,7
+84,7
@@
void smpi_group_destroy(MPI_Group group)
void smpi_group_set_mapping(MPI_Group group, int index, int rank)
{
void smpi_group_set_mapping(MPI_Group group, int index, int rank)
{
- if (rank < group->size && index <
smpi
_process_count()) {
+ if (rank < group->size && index <
SIMIX
_process_count()) {
group->rank_to_index_map[rank] = index;
if(index!=MPI_UNDEFINED)group->index_to_rank_map[index] = rank;
}
group->rank_to_index_map[rank] = index;
if(index!=MPI_UNDEFINED)group->index_to_rank_map[index] = rank;
}
@@
-103,10
+103,7
@@
int smpi_group_index(MPI_Group group, int rank)
int smpi_group_rank(MPI_Group group, int index)
{
int rank = MPI_UNDEFINED;
int smpi_group_rank(MPI_Group group, int index)
{
int rank = MPI_UNDEFINED;
-
- if (index < smpi_process_count()) {
- rank = group->index_to_rank_map[index];
- }
+ rank = group->index_to_rank_map[index];
return rank;
}
return rank;
}