SD_create_environment(argv[1]);
/* test the estimation functions */
- const sg_host_t *hosts = sg_host_list();
+ const sg_host_t* hosts = sg_host_list();
simgrid::s4u::Host* h1 = hosts[4];
simgrid::s4u::Host* h2 = hosts[2];
double comp_amount1 = 2000000;
XBT_INFO("Computation time for %f flops on %s: %f", comp_amount2, h2->cname(), comp_amount2/h2->speed());
XBT_INFO("Route between %s and %s:", h1->cname(), h2->cname());
- std::vector<Link*> route;
+ std::vector<sg_link_t> route;
double latency = 0;
h1->routeTo(h2, &route, &latency);
XBT_DEBUG("Tasks destroyed. Exiting SimDag...");
SD_exit();
+ xbt_free((sg_host_t*)hosts);
return 0;
}