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
updated jedule output of SimDag
[simgrid.git]
/
src
/
instr
/
jedule
/
jedule_sd_binding.c
diff --git
a/src/instr/jedule/jedule_sd_binding.c
b/src/instr/jedule/jedule_sd_binding.c
index
e5c51c6
..
8ce704b
100644
(file)
--- a/
src/instr/jedule/jedule_sd_binding.c
+++ b/
src/instr/jedule/jedule_sd_binding.c
@@
-60,7
+60,7
@@
static void create_hierarchy(AS_t current_comp,
unsigned int dynar_cursor;
char *key;
AS_t elem;
unsigned int dynar_cursor;
char *key;
AS_t elem;
-
network_element
_t network_elem;
+
sg_routing_edge
_t network_elem;
if(xbt_dict_is_empty(current_comp->routing_sons)) {
// I am no AS
if(xbt_dict_is_empty(current_comp->routing_sons)) {
// I am no AS
@@
-99,7
+99,7
@@
void jedule_setup_platform() {
jed_create_jedule(&jedule);
jed_create_jedule(&jedule);
- root_comp =
global_routing
->root;
+ root_comp =
routing_platf
->root;
XBT_DEBUG("root name %s\n", root_comp->name);
// that doesn't work
XBT_DEBUG("root name %s\n", root_comp->name);
// that doesn't work
@@
-125,8
+125,13
@@
void jedule_sd_init() {
void jedule_sd_dump() {
FILE *fh;
void jedule_sd_dump() {
FILE *fh;
+ char fname[1024];
- fh = fopen("simgrid.jed", "w");
+ fname[0] = '\0';
+ strcat(fname, xbt_binary_name);
+ strcat(fname, ".jed\0");
+
+ fh = fopen(fname, "w");
write_jedule_output(fh, jedule, jedule_event_list, NULL);
write_jedule_output(fh, jedule, jedule_event_list, NULL);