-/* Copyright (c) 2006-2017. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2006-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. */
{
std::vector<std::string> names;
- if (link->policy == SURF_LINK_FULLDUPLEX) {
+ if (link->policy == SURF_LINK_SPLITDUPLEX) {
names.push_back(link->id+ "_UP");
names.push_back(link->id+ "_DOWN");
} else {
linkUp = simgrid::surf::LinkImpl::byName(tmp_link);
linkDown = simgrid::surf::LinkImpl::byName(tmp_link);
- auto as_cluster = static_cast<ClusterZone*>(current_as);
+ auto* as_cluster = static_cast<ClusterZone*>(current_as);
as_cluster->privateLinks_.insert({as_cluster->nodePosition(rankId), {linkUp, linkDown}});
}
sg_platf_new_host(&host);
LinkCreationArgs link;
- link.policy = SURF_LINK_FULLDUPLEX;
+ link.policy = SURF_LINK_SPLITDUPLEX;
link.latency = cabinet->lat;
link.bandwidth = cabinet->bw;
link.id = "link_" + hostname;
xbt_assert(linkUp, "Link '%s' not found!", hostlink->link_up.c_str());
xbt_assert(linkDown, "Link '%s' not found!", hostlink->link_down.c_str());
- auto as_cluster = static_cast<simgrid::kernel::routing::ClusterZone*>(current_routing);
+ auto* as_cluster = static_cast<simgrid::kernel::routing::ClusterZone*>(current_routing);
if (as_cluster->privateLinks_.find(netpoint->id()) != as_cluster->privateLinks_.end())
surf_parse_error(std::string("Host_link for '") + hostlink->id.c_str() + "' is already defined!");