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
Add missing test before set properties.
[simgrid.git]
/
src
/
surf
/
surf_routing_floyd.c
diff --git
a/src/surf/surf_routing_floyd.c
b/src/surf/surf_routing_floyd.c
index
80856c5
..
bda5d5f
100644
(file)
--- a/
src/surf/surf_routing_floyd.c
+++ b/
src/surf/surf_routing_floyd.c
@@
-286,6
+286,9
@@
void model_floyd_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);
+
if(!routing->link_table)
{
/* Create Cost, Predecessor and Link tables */
if(!routing->link_table)
{
/* Create Cost, Predecessor and Link tables */