A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get ready for release
[simgrid.git]
/
examples
/
msg
/
msg_test.c
diff --git
a/examples/msg/msg_test.c
b/examples/msg/msg_test.c
index
cf6136e
..
a96d282
100644
(file)
--- 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;
while(1) {
m_task_t task = NULL;
int a;
@@
-235,7
+235,7
@@
void test_all(const char *platform_file,const char *application_file)
MSG_launch_application(application_file);
}
MSG_main();
MSG_launch_application(application_file);
}
MSG_main();
- printf("Simulation time %
L
g\n",MSG_getClock());
+ printf("Simulation time %g\n",MSG_getClock());
}
}
@@
-246,7
+246,12
@@
void test_all(const char *platform_file,const char *application_file)
int main(int argc, char *argv[])
{
MSG_global_init_args(&argc,argv);
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);
}
MSG_clean();
return (0);
}