chiark / gitweb /
actually do precomputations!
authorIan Jackson <ian@turbine>
Tue, 7 Oct 2008 23:46:56 +0000 (00:46 +0100)
committerIan Jackson <ian@turbine>
Tue, 7 Oct 2008 23:46:56 +0000 (00:46 +0100)
energy.c

index c009067..930a9d5 100644 (file)
--- a/energy.c
+++ b/energy.c
@@ -89,7 +89,7 @@ void compute_energy_separately(const struct Vertices *vs,
   int ci;
   
   for (ci=0; ci<NPRECOMPS; ci++) {
-    costs[ci].fn(vs->a, section);
+    precomps[ci](vs->a, section);
     inparallel_barrier();
   }
   for (ci=0; ci<NCOSTS; ci++)