From 63c9cb5ad26cfce1a2620eb05ad356b38ca20835 Mon Sep 17 00:00:00 2001 From: erg Date: Fri, 16 Nov 2007 22:55:03 +0000 Subject: [PATCH] Remove unnecessary termination test for mode=KK --- lib/neatogen/stuff.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/neatogen/stuff.c b/lib/neatogen/stuff.c index 33f41140b..1c5c1b70e 100644 --- a/lib/neatogen/stuff.c +++ b/lib/neatogen/stuff.c @@ -514,8 +514,10 @@ node_t *choose_node(graph_t * G, int nG) double m, max; node_t *choice, *np; static int cnt = 0; +#if 0 double e; static double save_e = MAXDOUBLE; +#endif cnt++; if (GD_move(G) >= MaxIter) @@ -550,11 +552,12 @@ node_t *choose_node(graph_t * G, int nG) if (cnt % 1000 == 0) fprintf(stderr, "\n"); } +#if 0 e = total_e(G, nG); if (fabs((e - save_e) / save_e) < 1e-5) { choice = NULL; - fprintf(stderr, " energy tolerance\n"); } +#endif } return choice; } -- 2.40.0