X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/69aaa26fa5228c31e55086fa166479732a9cd1b7..4cf130be719b6f34db9cf2e5a435d5f64ecc53f2:/teshsuite/s4u/seal-platform/seal-platform.cpp diff --git a/teshsuite/s4u/seal-platform/seal-platform.cpp b/teshsuite/s4u/seal-platform/seal-platform.cpp index 512362d64f..e8b775bb34 100644 --- a/teshsuite/s4u/seal-platform/seal-platform.cpp +++ b/teshsuite/s4u/seal-platform/seal-platform.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2022. 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. */ @@ -47,7 +47,6 @@ public: void operator()() const { auto mbox = sg4::Mailbox::by_name(sg4::this_actor::get_host()->get_name()); - auto comm = mbox->get_init(); auto received = mbox->get_unique(); XBT_INFO("I got a '%s'.", received->c_str()); @@ -69,8 +68,8 @@ static sg4::NetZone* create_zone(const sg4::NetZone* root, const std::string& id std::string hostname = id + "-cpu-" + std::to_string(i); auto* host = zone->create_host(hostname, 1e9); host->create_disk("disk-" + hostname, 1e9, 1e6); - auto* link = zone->create_link("link-" + hostname, 1e9); - zone->add_route(host->get_netpoint(), router, nullptr, nullptr, std::vector{link}); + const auto* link = zone->create_link("link-" + hostname, 1e9); + zone->add_route(host->get_netpoint(), router, nullptr, nullptr, {sg4::LinkInRoute(link)}); } return zone; } @@ -85,9 +84,9 @@ int main(int argc, char* argv[]) auto* root = sg4::create_full_zone("root"); auto* zoneA = create_zone(root, "A"); auto* zoneB = create_zone(root, "B"); - auto* link = root->create_link("root-link", 1e10); + const auto* link = root->create_link("root-link", 1e10); root->add_route(zoneA->get_netpoint(), zoneB->get_netpoint(), e.netpoint_by_name("routerA"), - e.netpoint_by_name("routerB"), std::vector{link}); + e.netpoint_by_name("routerB"), {sg4::LinkInRoute(link)}); std::vector host_list = e.get_all_hosts(); /* create the sender actor running on first host */