chiark / gitweb /
memoise edge_end2 now performance is good
[moebius2.git] / primer.c
index 70cbcfeda45883205414c05c6b285df43fbb790c..b030ac58a5622f3e66639f1cb54b11c17bd83fba 100644 (file)
--- a/primer.c
+++ b/primer.c
@@ -13,11 +13,13 @@ int main(int argc, const char **argv) {
   
   if (argc!=1) { fputs("need no args\n",stderr); exit(8); }
 
+  mgraph_prepare();
+
   printf("%d %d %d %d %d\n%%-%d.%dg\n",
         X*Y, N, X, Y, D3,
         prec+5,prec);
 
-  FOR_VERTEX(vi) {
+  FOR_VERTEX(vi, INNER) {
     int x= vi & XMASK; /* distance along strip */
     int y= vi >> YSHIFT; /* distance across strip */
     double u= y * 1.0 / (Y-1); /* SGT's u runs 0..1 across the strip */