X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5fb577f6a410e0a43ae2ac72f581889e7bac2c76..7d248dfd0b7fa18bacf5403efbf3dcf7a0cf902f:/src/surf/surf_routing.c diff --git a/src/surf/surf_routing.c b/src/surf/surf_routing.c index e4ce24ded5..9d5f0594bf 100644 --- a/src/surf/surf_routing.c +++ b/src/surf/surf_routing.c @@ -710,14 +710,6 @@ void routing_model_create( void *loopback) /* ************************************************************************** */ /* ************************* GENERIC PARSE FUNCTIONS ************************ */ -void routing_cluster_add_backbone(void* bb) { - xbt_assert(current_routing->model_desc == &routing_models[SURF_MODEL_CLUSTER], - "You have to be in model Cluster to use tag backbone!"); - xbt_assert(!((as_cluster_t)current_routing)->backbone,"The backbone link is already defined!"); - ((as_cluster_t)current_routing)->backbone = bb; - XBT_DEBUG("Add a backbone to AS '%s'",current_routing->name); -} - static void routing_parse_cabinet(sg_platf_cabinet_cbarg_t cabinet) { int start, end, i; @@ -937,7 +929,8 @@ static void routing_parse_cluster(sg_platf_cluster_cbarg_t cluster) sg_platf_new_link(&link); - routing_cluster_add_backbone(xbt_lib_get_or_null(link_lib, link_backbone, SURF_LINK_LEVEL)); + ((as_cluster_t)current_routing)->backbone = xbt_lib_get_or_null(link_lib, link_backbone, SURF_LINK_LEVEL); + XBT_DEBUG("Add a backbone to AS '%s'",current_routing->name); free(link_backbone); }