X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/44ea423d2d27e986f35e6b8d60772b7acec89916..a9113d6f217e32068b356fa249923e0c9be5a5b7:/src/surf/sg_platf.cpp?ds=sidebyside diff --git a/src/surf/sg_platf.cpp b/src/surf/sg_platf.cpp index f451fad71d..da32afa883 100644 --- a/src/surf/sg_platf.cpp +++ b/src/surf/sg_platf.cpp @@ -56,8 +56,8 @@ void sg_platf_init() /** Module management function: frees all internal data structures */ void sg_platf_exit() { - simgrid::surf::on_cluster.disconnect_all_slots(); - simgrid::s4u::onPlatformCreated.disconnect_all_slots(); + simgrid::surf::on_cluster.disconnectSlots(); + simgrid::s4u::onPlatformCreated.disconnectSlots(); /* make sure that we will reinit the models while loading the platf once reinited */ surf_parse_models_setup_already_called = 0; @@ -154,18 +154,18 @@ void sg_platf_new_cluster(ClusterCreationArgs* cluster) ZoneCreationArgs zone; zone.id = cluster->id; switch (cluster->topology) { - case SURF_CLUSTER_TORUS: - zone.routing = A_surfxml_AS_routing_ClusterTorus; - break; - case SURF_CLUSTER_DRAGONFLY: - zone.routing = A_surfxml_AS_routing_ClusterDragonfly; - break; - case SURF_CLUSTER_FAT_TREE: - zone.routing = A_surfxml_AS_routing_ClusterFatTree; - break; - default: - zone.routing = A_surfxml_AS_routing_Cluster; - break; + case ClusterTopology::TORUS: + zone.routing = A_surfxml_AS_routing_ClusterTorus; + break; + case ClusterTopology::DRAGONFLY: + zone.routing = A_surfxml_AS_routing_ClusterDragonfly; + break; + case ClusterTopology::FAT_TREE: + zone.routing = A_surfxml_AS_routing_ClusterFatTree; + break; + default: + zone.routing = A_surfxml_AS_routing_Cluster; + break; } sg_platf_new_Zone_begin(&zone); simgrid::kernel::routing::ClusterZone* current_as = static_cast(routing_get_current()); @@ -250,7 +250,7 @@ void sg_platf_new_cluster(ClusterCreationArgs* cluster) } //call the cluster function that adds the others links - if (cluster->topology == SURF_CLUSTER_FAT_TREE) { + if (cluster->topology == ClusterTopology::FAT_TREE) { static_cast(current_as)->addProcessingNode(i); } else { current_as->create_links_for_node(cluster, i, rankId, current_as->nodePositionWithLimiter(rankId));