Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge remote-tracking branch 'origin/master'
authorjean-noel quintin <jnquintin@dhcp-892b9b64.ucd.ie>
Tue, 21 Aug 2012 10:51:04 +0000 (11:51 +0100)
committerjean-noel quintin <jnquintin@dhcp-892b9b64.ucd.ie>
Tue, 21 Aug 2012 10:51:04 +0000 (11:51 +0100)
src/simix/smx_network.c
src/smpi/smpi_global.c

index 0ce248a..a6106bc 100644 (file)
@@ -933,12 +933,6 @@ void SIMIX_comm_copy_pointer_callback(smx_action_t comm, void* buff, size_t buff
 }
 
 void SIMIX_comm_copy_buffer_callback(smx_action_t comm, void* buff, size_t buff_size)
-{
-  XBT_DEBUG("Copy the data over");
-  memcpy(comm->comm.dst_buff, buff, buff_size);
-}
-
-void smpi_comm_copy_data_callback(smx_action_t comm, void* buff, size_t buff_size)
 {
   XBT_DEBUG("Copy the data over");
   memcpy(comm->comm.dst_buff, buff, buff_size);
@@ -948,6 +942,7 @@ void smpi_comm_copy_data_callback(smx_action_t comm, void* buff, size_t buff_siz
   }
 }
 
+
 /**
  *  \brief Copy the communication data from the sender's buffer to the receiver's one
  *  \param comm The communication
index c1c5715..38a0290 100644 (file)
@@ -207,7 +207,7 @@ void smpi_global_init(void)
   MPI_Group group;
   char name[MAILBOX_NAME_MAXLEN];
 
-  SIMIX_comm_set_copy_data_callback(&smpi_comm_copy_data_callback);
+  SIMIX_comm_set_copy_data_callback(&SIMIX_comm_copy_buffer_callback);
   process_count = SIMIX_process_count();
   process_data = xbt_new(smpi_process_data_t, process_count);
   for (i = 0; i < process_count; i++) {