- xbt_assert(argc==6, "This function expects 5 parameters from the XML deployment file");
- long number_of_tasks = xbt_str_parse_int(argv[1], "Invalid amount of tasks: %s");
- double task_comp_size = xbt_str_parse_double(argv[2], "Invalid computational size: %s");
- double task_comm_size = xbt_str_parse_double(argv[3], "Invalid communication size: %s");
- long receivers_count = xbt_str_parse_int(argv[4], "Invalid amount of receivers: %s");
- int diff_com = xbt_str_parse_int(argv[5], "Invalid value for diff_comm: %s");
+ xbt_assert(args.size()== 5, "This function expects 5 parameters from the XML deployment file");
+ long number_of_tasks = xbt_str_parse_int(args[0].c_str(), "Invalid amount of tasks: %s");
+ double task_comp_size = xbt_str_parse_double(args[1].c_str(), "Invalid computational size: %s");
+ double task_comm_size = xbt_str_parse_double(args[2].c_str(), "Invalid communication size: %s");
+ long receivers_count = xbt_str_parse_int(args[3].c_str(), "Invalid amount of receivers: %s");
+ int diff_com = xbt_str_parse_int(args[4].c_str(), "Invalid value for diff_comm: %s");