1 /* Copyright (c) 2008, 2009, 2010. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
9 #include "simdag/simdag.h"
10 #include "surf/surf_private.h"
12 extern routing_global_t global_routing;
14 int main(int argc, char **argv)
16 /* initialisation of SD */
19 xbt_dict_cursor_t cursor = NULL;
22 /* creation of the environment */
23 SD_create_environment(argv[1]);
25 size = xbt_dict_size(global_routing->where_network_elements);
27 printf("Workstation number: %d, link number: %d, elmts number: %d\n",
28 SD_workstation_get_number(), SD_link_get_number(), size);
30 xbt_dict_foreach(global_routing->where_network_elements, cursor, key, data) {
31 printf(" - Seen: \"%s\" is type : %d\n", key,
32 (int) global_routing->get_network_element_type(key));