A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Ensure windows combatibility.
[simgrid.git]
/
src
/
instr
/
instr_routing.c
diff --git
a/src/instr/instr_routing.c
b/src/instr/instr_routing.c
index
4371113
..
744d904
100644
(file)
--- a/
src/instr/instr_routing.c
+++ b/
src/instr/instr_routing.c
@@
-190,19
+190,19
@@
static void instr_routing_parse_start_link ()
{
container_t father = *(container_t*)xbt_dynar_get_ptr(currentContainer, xbt_dynar_length(currentContainer)-1);
- double bandwidth_value = lnk->V_link_bandwidth;
- double latency_value = lnk->V_link_latency;
+ double bandwidth_value =
struct_
lnk->V_link_bandwidth;
+ double latency_value =
struct_
lnk->V_link_latency;
xbt_dynar_t links_to_create = xbt_dynar_new (sizeof(char*), &xbt_free_ref);
- if (lnk->V_link_sharing_policy == A_surfxml_link_sharing_policy_FULLDUPLEX){
- char *up = bprintf("%s_UP", lnk->V_link_id);
- char *down = bprintf("%s_DOWN", lnk->V_link_id);
+ if (
struct_
lnk->V_link_sharing_policy == A_surfxml_link_sharing_policy_FULLDUPLEX){
+ char *up = bprintf("%s_UP",
struct_
lnk->V_link_id);
+ char *down = bprintf("%s_DOWN",
struct_
lnk->V_link_id);
xbt_dynar_push_as (links_to_create, char*, xbt_strdup(up));
xbt_dynar_push_as (links_to_create, char*, xbt_strdup(down));
free (up);
free (down);
}else{
- xbt_dynar_push_as (links_to_create, char*, strdup(lnk->V_link_id));
+ xbt_dynar_push_as (links_to_create, char*, strdup(
struct_
lnk->V_link_id));
}
char *link_name = NULL;
@@
-232,11
+232,11
@@
static void instr_routing_parse_end_link ()
static void instr_routing_parse_start_host ()
{
container_t father = *(container_t*)xbt_dynar_get_ptr(currentContainer, xbt_dynar_length(currentContainer)-1);
- container_t new = newContainer (host->V_host_id, INSTR_HOST, father);
+ container_t new = newContainer (
struct_
host->V_host_id, INSTR_HOST, father);
if (TRACE_categorized() || TRACE_uncategorized()) {
type_t power = getVariableType ("power", NULL, new->type);
- new_pajeSetVariable (0, new, power, host->V_host_power_peak);
+ new_pajeSetVariable (0, new, power,
struct_
host->V_host_power_peak);
}
if (TRACE_uncategorized()){
getVariableType ("power_used", "0.5 0.5 0.5", new->type);
@@
-277,7
+277,7
@@
static void instr_routing_parse_end_host ()
static void instr_routing_parse_start_router ()
{
container_t father = *(container_t*)xbt_dynar_get_ptr(currentContainer, xbt_dynar_length(currentContainer)-1);
- newContainer (router->V_router_id, INSTR_ROUTER, father);
+ newContainer (
struct_
router->V_router_id, INSTR_ROUTER, father);
}
static void instr_routing_parse_end_router ()