chiark / gitweb /
report best_adjmatrix in that form
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Mar 2014 18:31:54 +0000 (18:31 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 9 Mar 2014 18:31:54 +0000 (18:31 +0000)
main.c

diff --git a/main.c b/main.c
index 2c8edfe..84b0d6a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -687,6 +687,12 @@ static void iterate(void) {
 
 static void report(void) {
   fprintf(stderr, "\n");
+  if (best_adjmatrix) {
+    int i;
+    fprintf(stderr,"  ");
+    for (i=0; i<n; i++) fprintf(stderr, " %"PRADJ, best_adjmatrix[i]);
+    fprintf(stderr," OK\n");
+  }
   if (best_prob) {
     double min = glp_get_obj_val(best_prob);
     double a[n][m];