From a4d819602895c5e1fe306dfc0953cc7cfb54a871 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 7 May 2017 08:35:33 +0200 Subject: [PATCH] fix jedule builds --- src/instr/jedule/jedule_platform.cpp | 4 +++- src/msg/msg_environment.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/instr/jedule/jedule_platform.cpp b/src/instr/jedule/jedule_platform.cpp index 29f822934d..d850392238 100644 --- a/src/instr/jedule/jedule_platform.cpp +++ b/src/instr/jedule/jedule_platform.cpp @@ -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 - this->addResources(*from_as->hosts()); + std::vector 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())); diff --git a/src/msg/msg_environment.cpp b/src/msg/msg_environment.cpp index 0dee03e28c..295752836b 100644 --- a/src/msg/msg_environment.cpp +++ b/src/msg/msg_environment.cpp @@ -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) { + /* converts vector to dynar */ std::vector hosts; netzone->hosts(&hosts); for (auto host : hosts) -- 2.20.1