chiark / gitweb /
fixed XBITS==4
[moebius2.git] / minimise.c
index 333520942268a44ab95fe3947b991d73c8e89ff1..60f2d646e08d5495f72829ee8513dfaba3011ffd 100644 (file)
@@ -101,6 +101,7 @@ int main(int argc, const char *const *argv) {
   r= sigaction(SIGINT,&sa,0);
   if (r) diee("sigaction SIGINT");
 
+  mgraph_prepare();
   graph_layout_prepare();
   printing_init();
   energy_init();
@@ -139,7 +140,7 @@ int main(int argc, const char *const *argv) {
   for (;;) {
     if (quit_requested) {
       fprintf(stderr,"SIGINT caught.\n");
-      break;
+      exit(1);
     }
 
     GA( gsl_multimin_fminimizer_iterate(minimiser) );