Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Search/Replace of smpi_process()->index() in src/smpi/
[simgrid.git] / src / smpi / mpi / smpi_datatype.cpp
index 8da55c7..d60ea40 100644 (file)
@@ -277,7 +277,7 @@ int Datatype::copy(void *sendbuf, int sendcount, MPI_Datatype sendtype,
 // FIXME Handle the case of a partial shared malloc.
 
   if(smpi_privatize_global_variables == SMPI_PRIVATIZE_MMAP){
-    smpi_switch_data_segment(smpi_process()->index());
+    smpi_switch_data_segment(simgrid::s4u::Actor::self()->getPid());
   }
   /* First check if we really have something to do */
   if (recvcount > 0 && recvbuf != sendbuf) {