X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/f4ed74ca6d4a744d2956a4f2906c897e1886cefd..0ed272aba22041443953a820a97523260375ebc4:/src/surf/surf_routing.cpp diff --git a/src/surf/surf_routing.cpp b/src/surf/surf_routing.cpp index 23fd809f95..1a63ab6389 100644 --- a/src/surf/surf_routing.cpp +++ b/src/surf/surf_routing.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2011, 2013-2014. The SimGrid Team. +/* Copyright (c) 2009-2011, 2013-2015. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -717,8 +717,8 @@ void routing_model_create( void *loopback) void routing_cluster_add_backbone(void* bb) { xbt_assert(current_routing->p_modelDesc == &routing_models[SURF_MODEL_CLUSTER], "You have to be in model Cluster to use tag backbone!"); - xbt_assert(!surf_as_cluster_get_backbone(current_routing), "The backbone link is already defined!"); - surf_as_cluster_set_backbone(current_routing, bb); + xbt_assert(!static_cast(current_routing)->p_backbone, "The backbone link is already defined!"); + static_cast(current_routing)->p_backbone = static_cast(bb); XBT_DEBUG("Add a backbone to AS '%s'", current_routing->p_name); }