X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dc122c0fb3802061bc2fdb4abd50bf02a224cfdc..abf3b21ad3f4a19475431076e6e2b26f76d2e7d6:/examples/smpi/comm_dynamic_costs/comm-dynamic-cost.cpp diff --git a/examples/smpi/comm_dynamic_costs/comm-dynamic-cost.cpp b/examples/smpi/comm_dynamic_costs/comm-dynamic-cost.cpp index a4be7c2363..470836b3e9 100644 --- a/examples/smpi/comm_dynamic_costs/comm-dynamic-cost.cpp +++ b/examples/smpi/comm_dynamic_costs/comm-dynamic-cost.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2006-2021. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2006-2023. 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. */ @@ -15,9 +15,9 @@ namespace sg4 = simgrid::s4u; * in collective operations. But it doesn't happen in this example * * @param op MPI Operation (set by user at cb registering below) - * @param size Message size (set by simgrid) - * @param src Source host (set by simgrid) - * @param dst Source host (set by simgrid) + * @param size Message size (set by SimGrid) + * @param src Source host (set by SimGrid) + * @param dst Source host (set by SimGrid) */ static double smpi_cost_cb(SmpiOperation op, size_t /*size*/, const sg4::Host* src, const sg4::Host* dst) { @@ -47,8 +47,7 @@ void load_platform(const sg4::Engine& /*e*/) const sg4::Link* link9 = root->create_split_duplex_link("9", "7.20975MBps")->set_latency("1.461517ms")->seal(); - root->add_route(tremblay->get_netpoint(), jupiter->get_netpoint(), nullptr, nullptr, - {{link9, sg4::LinkInRoute::Direction::UP}}, true); + root->add_route(tremblay, jupiter, {link9}); root->seal(); /* set cost callback for MPI_Send and MPI_Recv */