* under the terms of the license (GNU LGPL) which comes with this package. */
#include <stdlib.h>
+#include <stdio.h>
#include "simdag/simdag.h"
#include "xbt/log.h"
unsigned int cursor;
SD_task_t task;
+ /* initialisation of SD */
+ SD_init(&argc, argv);
+
+ /* Check our arguments */
if (argc < 3) {
INFO1("Usage: %s platform_file dax_file", argv[0]);
INFO1("example: %s ../sd_platform.xml Montage_50.xml", argv[0]);
/* Display all the tasks */
xbt_dynar_foreach(dax,cursor,task) {
+ SD_task_dump(task);
+ }
+ FILE *out = fopen("dax.dot","w");
+ fprintf(out,"digraph A {\n");
+ xbt_dynar_foreach(dax,cursor,task) {
+ SD_task_dotty(task,out);
}
+ fprintf(out,"}\n");
+ fclose(out);
+
/* exit */
SD_exit();
return 1;