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
Wow, I wrote a simcall! 11 files to modify to do a simple get_size on a
[simgrid.git]
/
src
/
surf
/
surf_routing_vivaldi.c
diff --git
a/src/surf/surf_routing_vivaldi.c
b/src/surf/surf_routing_vivaldi.c
index 2079a80a2ba84975f4f9723c481bae57fec7d9fa..a7e0cce3e4f10eae35d38417c5bb2735f092e7a6 100644
(file)
--- a/
src/surf/surf_routing_vivaldi.c
+++ b/
src/surf/surf_routing_vivaldi.c
@@
-102,8
+102,10
@@
static int vivaldi_parse_PU(AS_t rc, sg_routing_edge_t elm) {
/* Creation routing model functions */
AS_t model_vivaldi_create(void)
{
/* Creation routing model functions */
AS_t model_vivaldi_create(void)
{
- AS_t new_component = model_rulebased_create();
+ AS_t new_component = model_generic_create_sized(sizeof *new_component);
+
new_component->get_route_and_latency = vivaldi_get_route_and_latency;
new_component->parse_PU = vivaldi_parse_PU;
new_component->get_route_and_latency = vivaldi_get_route_and_latency;
new_component->parse_PU = vivaldi_parse_PU;
+ new_component->get_graph = generic_get_graph;
return new_component;
}
return new_component;
}