Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Variable exists only with SMPI_F2C.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 15 Nov 2013 13:58:57 +0000 (14:58 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 15 Nov 2013 13:58:57 +0000 (14:58 +0100)
src/smpi/smpi_global.c

index 2b86de6..0616abd 100644 (file)
@@ -68,7 +68,9 @@ void smpi_process_init(int *argc, char ***argv)
   if (argc && argv) {
     proc = SIMIX_process_self();
     index = atoi((*argv)[1]);
+#ifdef SMPI_F2C
     smpi_current_rank = index;
+#endif
     data = smpi_process_remote_data(index);
     simcall_process_set_data(proc, data);
     if (*argc > 2) {