Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
functional implementation of trace replay on top of SMPI.
[simgrid.git] / src / smpi / smpif2c.in
index 67ebfc3814e12ca319b6840ce1d74a5c8138fbde..bdcbe867e2f81e610a8f6cb78ab7896a77cdd3f4 100755 (executable)
@@ -31,7 +31,7 @@ foreach my $fortran (@ARGV) {
          if(/^} (.*?);/) {
             $_ = "}* __attribute__((weak)) $1 = NULL;\n";
          } elsif(/^#define\s*(\S*)\s*\(?([^.]*)(\..*?)?\)?$/) {
-            $_ = "#define $1 $2\[smpi_process_index()\]";
+            $_ = "#define $1 $2\[smpi_current_rank\]";
             if(defined $3) {
                $_ .= $3;
             }