X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e18a7b043d161b29d0bf3f5743cb7a570241576a..51c23076e2b42ff07dc167dea1cb0e3a4ab3cf68:/src/instr/jedule/jedule_platform.cpp diff --git a/src/instr/jedule/jedule_platform.cpp b/src/instr/jedule/jedule_platform.cpp index 877905d18b..5d80ae677d 100644 --- a/src/instr/jedule/jedule_platform.cpp +++ b/src/instr/jedule/jedule_platform.cpp @@ -1,15 +1,21 @@ -/* Copyright (c) 2010-2017. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "simgrid/jedule/jedule.hpp" +#include "simgrid/host.h" #include "simgrid/s4u/NetZone.hpp" #include "xbt/asserts.h" #include #if SIMGRID_HAVE_JEDULE +namespace { +std::unordered_map host2_simgrid_parent_container; +std::unordered_map container_name2container; +} + namespace simgrid { namespace jedule { Subset::Subset(int start_idx, int end_idx, Container* parent) @@ -66,7 +72,7 @@ void Container::createHierarchy(sg_netzone_t from_as) this->addResources(table); } else { for (auto const& nz : *from_as->getChildren()) { - jed_container_t child_container = new simgrid::jedule::Container(std::string(nz->getCname())); + jed_container_t child_container = new simgrid::jedule::Container(std::string(nz->get_cname())); this->addChild(child_container); child_container->createHierarchy(nz); }