- for (i = 1; i < argc; i++)
- {
- INFO2("host [%d]= %s",i-1, argv[i]);
- hosts[i-1] = MSG_get_host_by_name(argv[i]);
- if(hosts[i-1]==NULL)
- {
- INFO1("Unknown host %s. Stopping Now! ", argv[i]);
- abort();
- }
- }
-
- for (i = 0; i < nbr; i++)
- {
-/* Latency */
- time=MSG_get_clock();
- task = MSG_task_create(sprintf_buffer, task_comp_size, task_comm_size_lat, NULL);
- INFO1("task = %p",task);
- task->data=xbt_new0(double,1);
- *(double*)(task->data)=time;
- INFO1("task->data = %le", *(double*)(task->data));
- INFO2("host [%d]=%s ",i, argv[i+1]);
- MSG_task_put(task, hosts[i],PORT_22);
-
- /* Bandwidth */
- time=MSG_get_clock();
- task = MSG_task_create(sprintf_buffer, task_comp_size, task_comm_size_bw, NULL);
- task->data=xbt_new0(double,1);
- *(double*)(task->data)=time;
- MSG_task_put(task, hosts[i % nbr],PORT_22);
- }
-
+ INFO1("host = %s", argv[1]);
+
+ host = MSG_get_host_by_name(argv[1]);
+
+ if(host==NULL){
+ INFO1("Unknown host %s. Stopping Now! ", argv[1]);
+ abort();
+ }