#include <time.h>
#endif
-#include <simgrid/datatypes.h>
+#include <simgrid/forward.h>
#include <smpi/forward.hpp>
#include <stddef.h>
#include <xbt/misc.h>
/* Fortran specific stuff */
XBT_PUBLIC(int) smpi_main(const char* program, int argc, char *argv[]);
-XBT_PUBLIC(int) smpi_process_index();
+XBT_ATTRIB_DEPRECATED_v322("Use Actor::self()->getPid(): v3.21 will turn this warning into an error.") XBT_PUBLIC(int) smpi_process_index();
XBT_PUBLIC(void) smpi_process_init(int *argc, char ***argv);
/* Trace replay specific stuff */
name = NULL; \
}
-#define SMPI_VARGET_GLOBAL(name) name[smpi_process_index()]
+#define SMPI_VARGET_GLOBAL(name) name[SIMIX_process_self()->pid]
/**
* This is used for the old privatization method, i.e., on old
smpi_register_static(name, xbt_free_f); \
}
-#define SMPI_VARGET_STATIC(name) name[smpi_process_index()]
+#define SMPI_VARGET_STATIC(name) name[SIMIX_process_self()->pid]
SG_END_DECL()