1 /* Copyright (c) 2013. 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"
13 XBT_LOG_NEW_DEFAULT_CATEGORY(sd_io,
14 "Logging specific to this SimDag example");
15 int main(int argc, char **argv)
17 unsigned int ctr, ctr2;
18 const SD_workstation_t *workstations;
19 int total_nworkstations;
20 xbt_dynar_t current_storage_list;
24 /* Set the workstation model to default, as storage is not supported by the
25 * ptask_L07 model yet.
27 SD_config("workstation/model", "default");
28 SD_create_environment(argv[1]);
29 workstations = SD_workstation_get_list();
30 total_nworkstations = SD_workstation_get_number();
32 for (ctr=0; ctr<total_nworkstations;ctr++){
33 current_storage_list = SD_workstation_get_storage_list(workstations[ctr]);
34 xbt_dynar_foreach(current_storage_list, ctr2, mount_name)
35 XBT_INFO("Workstation '%s' mounts '%s'",
36 SD_workstation_get_name(workstations[ctr]), mount_name);
37 xbt_dynar_free_container(¤t_storage_list);