Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
oops. forgot a msg_getClock...
[simgrid.git] / examples / msg / msg_test.c
index 985baa8..01a74f3 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");
@@ -189,14 +194,14 @@ void test_all(const char *platform_file,const char *application_file)
   }
   MSG_main();
   
-  INFO1("Simulation time %g",MSG_getClock());
+  INFO1("Simulation time %g",MSG_get_clock());
 } /* end_of_test_all */
 
 
 /** 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]);