From: Matthew Fernandez Date: Sat, 26 Nov 2022 17:34:30 +0000 (-0800) Subject: sfdpgen spring_electrical_embedding_slow: remove 'qt' that is always NULL X-Git-Tag: 7.0.4~4^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=36e6eb508af58329ccad4fbf9b92792af426c252;p=graphviz sfdpgen spring_electrical_embedding_slow: remove 'qt' that is always NULL --- diff --git a/lib/sfdpgen/spring_electrical.c b/lib/sfdpgen/spring_electrical.c index aaed66787..80c625359 100644 --- a/lib/sfdpgen/spring_electrical.c +++ b/lib/sfdpgen/spring_electrical.c @@ -660,11 +660,10 @@ static void spring_electrical_embedding_slow(int dim, SparseMatrix A0, spring_el double *f = NULL, dist, F, Fnorm = 0, Fnorm0; int iter = 0; int adaptive_cooling = ctrl->adaptive_cooling; - QuadTree qt = NULL; double *force; #ifdef TIME clock_t start, end, start0, start2; - double qtree_cpu = 0, qtree_cpu0 = 0; + double qtree_cpu = 0; double total_cpu = 0; start0 = clock(); #endif @@ -775,17 +774,6 @@ static void spring_electrical_embedding_slow(int dim, SparseMatrix A0, spring_el }/* done vertex i */ - if (qt) { - QuadTree_delete(qt); -#ifdef TIME - qtree_cpu0 = qtree_cpu - qtree_cpu0; - if (Verbose && 0) fprintf(stderr, "\n cpu this outer iter = %f, quadtree time = %f other time = %f\n",((double) (clock() - start2)) / CLOCKS_PER_SEC, qtree_cpu0,((double) (clock() - start2))/CLOCKS_PER_SEC - qtree_cpu0); - qtree_cpu0 = qtree_cpu; -#endif - if (Verbose && 0) fprintf(stderr, "nsuper_avg=0, counts_avg = 0 2*nsuper+counts=0\n"); - oned_optimizer_train(qtree_level_optimizer, 0); - } - #ifdef ENERGY if (Verbose) { fprintf(stderr, "\r iter = %d, step = %f Fnorm = %f nsuper = 0 nz = %d K = %f ",iter, step, Fnorm,A->nz,K);