void TRACE_surf_missing_link (void);
void TRACE_surf_define_host_id (const char *name, int host_id);
void TRACE_msg_clean (void);
+void TRACE_surf_vivaldi_parse_host (char *host, double x, double y, double h);
//for tracing gtnets
void TRACE_surf_gtnets_communicate (void *action, int src, int dst);
}
}
+void TRACE_surf_vivaldi_parse_host (char *host, double x, double y, double h)
+{
+ if (!IS_TRACING || !IS_TRACING_PLATFORM) return;
+
+ char valuestr[100];
+ snprintf (valuestr, 100, "%g", x);
+ pajeSetVariable (0, "vivaldi_x", host, valuestr);
+ snprintf (valuestr, 100, "%g", y);
+ pajeSetVariable (0, "vivaldi_y", host, valuestr);
+ snprintf (valuestr, 100, "%g", h);
+ pajeSetVariable (0, "vivaldi_h", host, valuestr);
+}
+
#endif
coord->y = atof(xbt_dynar_get_as(ctn, 1, char*));
coord->h = atof(xbt_dynar_get_as(ctn, 2, char*));
+#ifdef HAVE_TRACING
+ TRACE_surf_vivaldi_parse_host (A_surfxml_host_id, coord->x, coord->y, coord->h);
+#endif
+
xbt_dynar_free(&ctn);
xbt_dict_set(coords, A_surfxml_host_id,coord,NULL);
}
update_model_description(surf_network_model_description,
"Vivaldi", surf_network_model);
+#ifdef HAVE_TRACING
+ __TRACE_host_variable(0,"vivaldi_x",0,"declare");
+ __TRACE_host_variable(0,"vivaldi_y",0,"declare");
+ __TRACE_host_variable(0,"vivaldi_h",0,"declare");
+#endif
+
xbt_cfg_set_string(_surf_cfg_set, "routing", "none");
routing_model_create(sizeof(double), NULL);
}