}
-void test(void);
-void test(void)
+void test(char *platform);
+void test(char *platform)
{
void *workstationA = NULL;
void *workstationB = NULL;
e_surf_action_state_t stateActionC;
double now = -1.0;
- surf_workstation_resource_init("platform.txt");
+ surf_workstation_resource_init(platform);
/*********************** WORKSTATION ***********************************/
workstationA =
surf_finalize();
}
-
int main(int argc, char **argv)
{
surf_init(&argc, argv); /* Initialize some common structures */
- test();
+ if(argc==1) {
+ fprintf(stderr,"Usage : %s platform.txt\n",argv[0]);
+ return 1;
+ }
+ test(argv[1]);
return 0;
}