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
Let the user set the latency with the constant network model
[simgrid.git]
/
src
/
surf
/
surf_routing_dijkstra.c
diff --git
a/src/surf/surf_routing_dijkstra.c
b/src/surf/surf_routing_dijkstra.c
index
ab9e58f
..
60e055b
100644
(file)
--- a/
src/surf/surf_routing_dijkstra.c
+++ b/
src/surf/surf_routing_dijkstra.c
@@
-500,6
+500,9
@@
void model_dijkstra_both_set_route (routing_component_t rc, const char *src,
src_id = xbt_dict_get_or_null(rc->to_index, src);
dst_id = xbt_dict_get_or_null(rc->to_index, dst);
src_id = xbt_dict_get_or_null(rc->to_index, src);
dst_id = xbt_dict_get_or_null(rc->to_index, dst);
+ xbt_assert(src_id, "Network elements %s not found", src);
+ xbt_assert(dst_id, "Network elements %s not found", dst);
+
/* Create the topology graph */
if(!routing->route_graph)
routing->route_graph = xbt_graph_new_graph(1, NULL);
/* Create the topology graph */
if(!routing->route_graph)
routing->route_graph = xbt_graph_new_graph(1, NULL);