From 69018fc50f3c15c11e86618a06e3a2f9fc6aeeb3 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 15 Nov 2013 11:48:03 +0100 Subject: [PATCH] Set smpi_currenk_rank at process init too. The goal here, is that f77 common variables are correctly referenced, even before mpi_init. --- src/smpi/smpi_global.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/smpi/smpi_global.c b/src/smpi/smpi_global.c index b5b05afe04..2b86de6f75 100644 --- 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) { -- 2.20.1