Skip to content
Snippets Groups Projects
Commit 2dbf4f75 authored by erwan's avatar erwan
Browse files

generated a dot file when something goes wrong

parent f5c7c39c
No related branches found
No related tags found
No related merge requests found
...@@ -228,7 +228,19 @@ let () = ...@@ -228,7 +228,19 @@ let () =
(Printexc.to_string error); (Printexc.to_string error);
(-1) (-1)
in in
res if res = n then (
Printf.printf " (%s)\n%!" (StringOf.env_rif s.config st.network);
Printf.fprintf newdot "%s\n" (SimuState.to_dot s);
Printf.printf "%s and %s have been generated\n" (s.sasarg.topo ^ ".log") newdot_fn;
flush_all();
close_out newdot;
close_out log;
failwith(Printf.sprintf
"Maximum simulation length reached. Something went wrong or %d is not long enough (use sasa -l to try longer simulation" n
)
)
else
res
in in
let st = (WorstInit.fchc log run st maxt) in let st = (WorstInit.fchc log run st maxt) in
Printf.printf " (%s)\n%!" (StringOf.env_rif st.config st.network); Printf.printf " (%s)\n%!" (StringOf.env_rif st.config st.network);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment