1 /* simple test trying to load a DAX file. */
3 /* Copyright (c) 2009 Da SimGrid Team. All rights reserved. */
5 /* This program is free software; you can redistribute it and/or modify it
6 * under the terms of the license (GNU LGPL) which comes with this package. */
9 #include "simdag/simdag.h"
12 XBT_LOG_NEW_DEFAULT_CATEGORY(test,
13 "Logging specific to this SimDag example");
16 int main(int argc, char **argv) {
21 /* initialisation of SD */
24 /* Check our arguments */
26 INFO1("Usage: %s platform_file dax_file", argv[0]);
27 INFO1("example: %s ../sd_platform.xml Montage_50.xml", argv[0]);
31 /* creation of the environment */
32 SD_create_environment(argv[1]);
34 /* load the DAX file */
35 dax=SD_daxload(argv[2]);
37 /* Display all the tasks */
38 xbt_dynar_foreach(dax,cursor,task) {