From 54b061232d28d8d7a928c2a97ed6df3309452a4c Mon Sep 17 00:00:00 2001 From: tTh Date: Tue, 4 Jul 2023 17:26:46 +0200 Subject: [PATCH] useless fine tuning and a little oups --- Fonderie/interpolator.c | 15 ++++++++++----- Fonderie/singlepass.c | 18 ++++++++++-------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/Fonderie/interpolator.c b/Fonderie/interpolator.c index 86ec78c..369f156 100644 --- a/Fonderie/interpolator.c +++ b/Fonderie/interpolator.c @@ -58,6 +58,10 @@ fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, ptr_glob, ptr_idxval, method); #endif +if (0 == method) { + fprintf(stderr, "\tWTF? in %s, method was ZERO?\n", __func__); + } + nombre = ptr_glob->gl_pathc; /* allocate the array for the sorting action */ @@ -66,7 +70,7 @@ if (NULL==idxvalues) { fprintf(stderr, "MEMORY ERROR in %s\n", __func__); exit(1); } -fprintf(stderr, "IdxValues array at %p\n", idxvalues); +// fprintf(stderr, "IdxValues array at %p\n", idxvalues); *ptr_idxval = idxvalues; average = 0.0; @@ -104,7 +108,7 @@ if (verbosity > 1) { average /= (double)nombre; *p_average = average; -fprintf(stderr, "\naverage %f\n", average); +fprintf(stderr, "\naverage of ??? is %f\n", average); return 0; } @@ -126,14 +130,14 @@ float coef; double meanmetric; IdxValue *idx_values; /* gni? */ -fprintf(stderr, " interpolate from '%s' to '%s' with %d steps.\n", +fprintf(stderr, " interpolate from '%s' to '%s' with %d steps.\n", pattern, outdir, Nsteps); if (negative) fprintf(stderr, "%s: negative ON\n", __func__); memset(&globbuf, 0, sizeof(glob_t)); foo = glob(pattern, 0, NULL, &globbuf); -fprintf(stderr, "globbing '%s' -> %d, %d files found\n", +fprintf(stderr, " globbing '%s' -> %d, %d files found\n", pattern, foo, (int)globbuf.gl_pathc); if (0 == globbuf.gl_pathc) { fprintf(stderr, "%s : no file found, aborting\n", __func__); @@ -253,7 +257,7 @@ int sort = 0; char *InFchain = "0"; char *OutFchain = "0"; -fprintf(stderr, "*** %s : compiled by tTh, %s %s\n", __FILE__, +fprintf(stderr, "*** %s\n\tcompiled by tTh, %s %s\n", argv[0], __DATE__, __TIME__); fimg_print_version(2); @@ -303,6 +307,7 @@ if (verbosity) { fprintf(stderr, "\toutput dir '%s'\n", argv[optind+1]); fprintf(stderr, "\tsrc filter '%s'\n", InFchain); fprintf(stderr, "\tout filter '%s'\n", OutFchain); + fprintf(stderr, "\tsort %d\n", sort); } if (verbosity > 1) { diff --git a/Fonderie/singlepass.c b/Fonderie/singlepass.c index 5013977..15084bc 100644 --- a/Fonderie/singlepass.c +++ b/Fonderie/singlepass.c @@ -25,6 +25,9 @@ int verbosity; /* ----------------------------------------------------------- */ +/* + * parameter 'duplic' is the repetition factor + */ int run_the_singlepass(char *globber, char *destdir, int duplic, int fchain, int outfmt) { @@ -35,8 +38,8 @@ char *fname; double elapsed; #if DEBUG_LEVEL -fprintf(stderr, ">>> %s ( '%s' '%s' %d %d )\n", __func__, - globber, destdir, fchain, outfmt); +fprintf(stderr, ">>> %s ( '%s' '%s' %d %d %d )\n", __func__, + globber, destdir, duplic, fchain, outfmt); #endif if (verbosity) filterstack_list(fchain, "Run the single pass"); @@ -107,14 +110,10 @@ for (idx=0; idx %d\n", foo);