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
Use priorities...
[simgrid.git]
/
src
/
surf
/
network_private.h
diff --git
a/src/surf/network_private.h
b/src/surf/network_private.h
index
a1b52c8
..
0bc3f3d
100644
(file)
--- a/
src/surf/network_private.h
+++ b/
src/surf/network_private.h
@@
-12,10
+12,10
@@
#include "xbt/dict.h"
typedef struct network_link_CM02 {
#include "xbt/dict.h"
typedef struct network_link_CM02 {
- surf_
resource_t resource;
/* Any such object, added in a trace
+ surf_
model_t model;
/* Any such object, added in a trace
should start by this field!!! */
/* Using this object with the public part of
should start by this field!!! */
/* Using this object with the public part of
-
resource
does not make sense */
+
model
does not make sense */
char *name;
double bw_current;
tmgr_trace_event_t bw_event;
char *name;
double bw_current;
tmgr_trace_event_t bw_event;
@@
-45,4
+45,12
@@
typedef struct surf_action_network_CM02 {
extern xbt_dict_t network_card_set;
extern xbt_dict_t network_card_set;
+
+extern int card_number;
+extern network_link_CM02_t **routing_table;
+extern int *routing_table_size;
+
+#define ROUTE(i,j) routing_table[(i)+(j)*card_number]
+#define ROUTE_SIZE(i,j) routing_table_size[(i)+(j)*card_number]
+
#endif /* _SURF_NETWORK_PRIVATE_H */
#endif /* _SURF_NETWORK_PRIVATE_H */