Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make SURF complain when you ask to perform a communication between two non-connected...
[simgrid.git] / src / surf / network_dassf.c
index 1b07eda..9d5d10f 100644 (file)
@@ -365,6 +365,8 @@ static surf_action_t communicate(void *src, void *dst, double size, double rate)
   network_link_DASSF_t *route = ROUTE(card_src->id, card_dst->id);
   int i;
 
+  xbt_assert2(route_size,"You're trying to send data from %s to %s but there is no connexion between these two cards.", card_src->name, card_dst->name);
+
   action = xbt_new0(s_surf_action_network_DASSF_t, 1);
 
   action->generic_action.using = 1;