Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
getting rid of deprecated functions
[simgrid.git] / examples / msg / msg_test.c
index 985baa8..388e087 100644 (file)
@@ -93,6 +93,9 @@ int master(int argc, char *argv[])
     INFO2("Sending \"%s\" to \"%s\"",
                   todo[i]->name,
                   slaves[i % slaves_count]->name);
+    if(MSG_host_self()==slaves[i % slaves_count]) {
+      INFO0("Hey ! It's me ! :)");
+    }
     MSG_task_put(todo[i], slaves[i % slaves_count],
                  PORT_22);
     INFO0("Send completed");
@@ -176,6 +179,8 @@ int forwarder(int argc, char *argv[])
 /** Test function */
 void test_all(const char *platform_file,const char *application_file)
 {
+
+  /* MSG_config("surf_workstation_model","KCCFLN05"); */
   {                            /*  Simulation setting */
     MSG_set_channel_number(MAX_CHANNEL);
     MSG_paje_output("msg_test.trace");
@@ -196,7 +201,7 @@ void test_all(const char *platform_file,const char *application_file)
 /** Main function */
 int main(int argc, char *argv[])
 {
-  MSG_global_init_args(&argc,argv);
+  MSG_global_init(&argc,argv);
   if (argc < 3) {
      printf ("Usage: %s platform_file deployment_file\n",argv[0]);
      printf ("example: %s msg_platform.xml msg_deployment.xml\n",argv[0]);