commit du bug rebelle

This commit is contained in:
tTh
2023-05-02 10:06:24 +02:00
parent d3cca97dbf
commit 5eaa64a664
12 changed files with 163 additions and 56 deletions

View File

@@ -88,7 +88,7 @@ fprintf(stderr, ">>> %s ( %p )\n", __func__, eav);
if (verbosity) fprintf(stderr, " fprinting %d edges\n", eav->Elist->fidx);
vmax = eav->Blist->fidx;
fprintf(stderr, " in %s, vmax was %d\n", __func__, vmax);
fprintf(stderr, " %s: eav->Blist->fidx = %d\n", __func__, vmax);
/*
* OK we have (maybe) all the data in da place
@@ -102,7 +102,7 @@ for (idx=0; idx<eav->Elist->fidx; idx++) {
/* this is a Molly-Guard */
if ( (a<0) || (b<0) || (a>vmax) || (b>vmax) ) {
fprintf(stderr, "ERROR: vmax=%d a=%d b=%d\n", vmax, a, b);
return -1;
continue;
}
printf("%.9f %.9f %.9f %.9f %.9f %.9f\n",
@@ -167,6 +167,10 @@ if (foo) {
exit(1);
}
/* deallocate used memory for keep pinpin happy */
free_bubulles(eav.Blist, 1);
free_edgelist(eav.Elist, 1);
return 0;
}
/* --------------------------------------------------------------------- */