Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - igh

#1
Thanks!

I only need this for the CLI. It enables my wrapper script to examine the partial timetables and logs. It can then provide more information to helps identify the problem areas. All I actually need is fs_activities.xml and the log files, but I expect the other formatted output could be very useful to others.

Ian


#2
Hi, thanks for producing a great program!

I've made a small change to my copy of 5.16.0 to save the timetables on timeout in the same way you do for SIGTERM.
It would be great if you could add this to the base code.

Here is the diff of the change I made:


diff --git a/src/interface/fet.cpp b/src/interface/fet.cpp
--- a/src/interface/fet.cpp
+++ b/src/interface/fet.cpp
@@ -872,13 +872,15 @@
cout<<"Impossible"<<endl;
out<<"Impossible"<<endl;
}
- else if(timeExceeded){
- cout<<"Time exceeded"<<endl;
- out<<"Time exceeded"<<endl;
- }
- else if(gen.abortOptimization){
- cout<<"Simulation stopped"<<endl;
- out<<"Simulation stopped"<<endl;
+ // !IGH! write best and current timetables when time exceeded or SIGTERM
+ else if(timeExceeded || gen.abortOptimization ){
+ if(timeExceeded){
+ cout<<"Time exceeded"<<endl;
+ out<<"Time exceeded"<<endl;
+ }else{
+ cout<<"Simulation stopped"<<endl;
+ out<<"Simulation stopped"<<endl;
+ }

//2011-11-11 (1)
//write current stage timetable


Thanks, Ian