xbt_dict_set(cluster_host_link,host_id,strdup(link_id),free);
// XBT_INFO("key '%s' Value '%s'",host_id,link_id);
ETag_surfxml_host();
- xbt_free(struct_host->V_host_id);
- xbt_free(struct_host->V_host_coord);
- xbt_free(struct_host);
-
ETag_surfxml_link();
- xbt_free(struct_lnk->V_link_id);
- xbt_free(struct_lnk);
break;
struct_host->V_host_power_scale = 1.0;
struct_host->V_host_core = struct_cluster->S_cluster_core;
struct_host->V_host_state_initial = SURF_RESOURCE_ON;
- struct_host->V_host_coord = xbt_strdup("");
+ struct_host->V_host_coord = "";
STag_surfxml_host_cluster();
XBT_DEBUG("</host>");
// XBT_INFO("key '%s' Value '%s'",host_id,link_id);
ETag_surfxml_host();
- xbt_free(struct_host->V_host_id);
- xbt_free(struct_host->V_host_coord);
- xbt_free(struct_host);
-
ETag_surfxml_link();
- xbt_free(struct_lnk->V_link_id);
- xbt_free(struct_lnk);
+
}
break;
STag_surfxml_link_cluster();
ETag_surfxml_link();
- free(link_backbone);
+// free(link_backbone);
}
XBT_DEBUG(" ");
}
void ETag_surfxml_host(void){
surfxml_call_cb_functions(ETag_surfxml_host_cb_list);
+ xbt_free(struct_host->V_host_id);
+ xbt_free(struct_host);
}
void STag_surfxml_router(void){
}
void ETag_surfxml_link(void){
surfxml_call_cb_functions(ETag_surfxml_link_cb_list);
+ xbt_free(struct_lnk->V_link_id);
+ xbt_free(struct_lnk);
}
void STag_surfxml_route(void){
<platform version="3">
<AS id="AS0" routing="Full">
<cluster id="bob_cluster" prefix="bob" suffix=".hamburger.edu"
- radical="0-99999" power="1000000000.00" bw="125000000.00" lat="5e-5"
+ radical="0,2-4,6" power="1000000000.00" bw="125000000.00" lat="5e-5"
bb_bw="2250000000.00" bb_lat="5e-4"/>
</AS>
</platform>