Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Set smpi_currenk_rank at process init too.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 15 Nov 2013 10:48:03 +0000 (11:48 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 15 Nov 2013 10:48:18 +0000 (11:48 +0100)
The goal here, is that f77 common variables are correctly referenced,
even before mpi_init.

src/smpi/smpi_global.c

index b5b05af..2b86de6 100644 (file)
@@ -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) {