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
Set smpi_currenk_rank at process init too.
[simgrid.git]
/
src
/
smpi
/
smpi_global.c
diff --git
a/src/smpi/smpi_global.c
b/src/smpi/smpi_global.c
index
b5b05af
..
2b86de6
100644
(file)
--- a/
src/smpi/smpi_global.c
+++ b/
src/smpi/smpi_global.c
@@
-68,6
+68,7
@@
void smpi_process_init(int *argc, char ***argv)
if (argc && argv) {
proc = SIMIX_process_self();
index = atoi((*argv)[1]);
+ smpi_current_rank = index;
data = smpi_process_remote_data(index);
simcall_process_set_data(proc, data);
if (*argc > 2) {