Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Optimization of the lmm_variable_t mallocator
[simgrid.git] / src / smpi / smpif2c.in
index 296ca19..1d6c4d0 100755 (executable)
@@ -30,7 +30,7 @@ foreach my $fortran (@ARGV) {
          if(/^} (.*?);/) {
             $_ = "}* __attribute__((weak)) $1 = NULL;\n";
          } elsif(/^#define\s*(\S*)\s*\(?([^.]*)(\..*?)?\)?$/) {
-            $_ = "#define $1 $2\[smpi_global_rank()\]";
+            $_ = "#define $1 $2\[smpi_process_index()\]";
             if(defined $3) {
                $_ .= $3;
             }