Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix lua and jedule builds (with paranoid compil flags)
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 10 Jun 2018 22:43:46 +0000 (00:43 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 10 Jun 2018 22:43:46 +0000 (00:43 +0200)
src/bindings/java/jmsg_as.cpp
src/instr/jedule/jedule_platform.cpp

index 607f4a9..2e08d3b 100644 (file)
@@ -127,8 +127,7 @@ JNIEXPORT jobjectArray JNICALL Java_org_simgrid_msg_As_getHosts(JNIEnv * env, jo
   if (not cls)
     return nullptr;
 
-  std::vector<sg_host_t> table;
-  as->getHosts(&table);
+  std::vector<simgrid::s4u::Host*> table = as->get_all_hosts();
 
   jtable = env->NewObjectArray(static_cast<jsize>(table.size()), cls, nullptr);
 
index 5d80ae6..577b702 100644 (file)
@@ -67,8 +67,7 @@ void Container::createHierarchy(sg_netzone_t from_as)
   if (from_as->getChildren()->empty()) {
     // I am no AS
     // add hosts to jedule platform
-    std::vector<sg_host_t> table;
-    from_as->getHosts(&table);
+    std::vector<sg_host_t> table = from_as->get_all_hosts();
     this->addResources(table);
   } else {
     for (auto const& nz : *from_as->getChildren()) {