Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix jedule builds
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 7 May 2017 06:35:33 +0000 (08:35 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 7 May 2017 06:35:33 +0000 (08:35 +0200)
src/instr/jedule/jedule_platform.cpp
src/msg/msg_environment.cpp

index 29f8229..d850392 100644 (file)
@@ -65,7 +65,9 @@ void Container::createHierarchy(sg_netzone_t from_as)
   if (from_as->children()->empty()) {
     // I am no AS
     // add hosts to jedule platform
   if (from_as->children()->empty()) {
     // I am no AS
     // add hosts to jedule platform
-    this->addResources(*from_as->hosts());
+    std::vector<sg_host_t> table;
+    from_as->hosts(&table);
+    this->addResources(table);
   } else {
     for (auto nz : *from_as->children()) {
       jed_container_t child_container = new simgrid::jedule::Container(std::string(nz->name()));
   } else {
     for (auto nz : *from_as->children()) {
       jed_container_t child_container = new simgrid::jedule::Container(std::string(nz->name()));
index 0dee03e..2957528 100644 (file)
@@ -82,6 +82,7 @@ void MSG_zone_set_property_value(msg_netzone_t netzone, const char* name, char*
 
 void MSG_zone_get_hosts(msg_netzone_t netzone, xbt_dynar_t whereto)
 {
 
 void MSG_zone_get_hosts(msg_netzone_t netzone, xbt_dynar_t whereto)
 {
+  /* converts vector to dynar */
   std::vector<simgrid::s4u::Host*> hosts;
   netzone->hosts(&hosts);
   for (auto host : hosts)
   std::vector<simgrid::s4u::Host*> hosts;
   netzone->hosts(&hosts);
   for (auto host : hosts)