Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
code cleanup, streamlining, removed some redundant function calls.
[simgrid.git] / src / smpi / smpi_sender.c
index 983ded8..f02e0ab 100644 (file)
@@ -66,7 +66,7 @@ int smpi_sender(int argc, char **argv)
                        SIMIX_mutex_lock(request->mutex);
 
                        message->comm    = request->comm;
-                       message->src     = smpi_mpi_comm_rank(request->comm);
+                       message->src     = request->comm->index_to_rank_map[index];
                        message->tag     = request->tag;
                        message->data    = request->data;
                        message->buf     = xbt_malloc(request->datatype->size * request->count);