* Note that a router is created, easing the interconnexion with the rest of the world. */
namespace simgrid {
-namespace surf {
+namespace routing {
AsCluster::AsCluster(const char*name)
: AsImpl(name)
{}
s_surf_parsing_link_up_down_t info;
XBT_VERB("cluster_get_route_and_latency from '%s'[%d] to '%s'[%d]",
src->name(), src->id(), dst->name(), dst->id());
-
+ xbt_assert(!xbt_dynar_is_empty(privateLinks_), "Cluster routing : no links attached to the source node - did you use host_link tag?");
if (! src->isRouter()) { // No specific link for router
if((src->id() == dst->id()) && hasLoopback_ ){
int table_size = xbt_dynar_length(vertices_);
NetCard *src;
- xbt_node_t current, previous, backboneNode = NULL, routerNode;
+ xbt_node_t current, previous, backboneNode = nullptr, routerNode;
s_surf_parsing_link_up_down_t info;
xbt_assert(router_,"Malformed cluster. This may be because your platform file is a hypergraph while it must be a graph.");