Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simdag/dot,example/simdag/dot] correction of logs
[simgrid.git] / examples / simdag / dot / simulate_dot.c
index a28aa8f..ad2a6cb 100644 (file)
@@ -47,7 +47,11 @@ int main(int argc, char **argv)
   SD_create_environment(argv[1]);
 
   /* load the DOT file  and schedule tasks */
-  dot = SD_dotload(argv[2]);
+  dot = SD_dotload_with_sched(argv[2]);
+  if(dot == NULL){
+    INFO0("The dot file with the provided scheduling is wrong, more information with the option : --log=sd_dotparse.thres:verbose");
+    return -1;
+  }
 
   /* Display all the tasks */
   INFO0