X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/52bbec97eae35ac830edcf70ab4970629e19e2b6..cd5368c476f1a63917ae4ab75a005f062704f962:/examples/msg/msg_test.c diff --git a/examples/msg/msg_test.c b/examples/msg/msg_test.c index cf6136e84f..f7b68ce0fb 100644 --- a/examples/msg/msg_test.c +++ b/examples/msg/msg_test.c @@ -186,7 +186,7 @@ int forwarder(int argc, char *argv[]) } } - + i=0; while(1) { m_task_t task = NULL; int a; @@ -226,6 +226,7 @@ void test_all(const char *platform_file,const char *application_file) { { /* Simulation setting */ MSG_set_channel_number(MAX_CHANNEL); + MSG_paje_output("msg_test.trace"); MSG_create_environment(platform_file); } { /* Application deployment */ @@ -235,7 +236,7 @@ void test_all(const char *platform_file,const char *application_file) MSG_launch_application(application_file); } MSG_main(); - printf("Simulation time %Lg\n",MSG_getClock()); + printf("Simulation time %g\n",MSG_getClock()); } @@ -246,7 +247,12 @@ void test_all(const char *platform_file,const char *application_file) int main(int argc, char *argv[]) { MSG_global_init_args(&argc,argv); - test_all("msg_platform.xml","msg_deployment.xml"); + 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]); + exit(1); + } + test_all(argv[1],argv[2]); MSG_clean(); return (0); }