star-line

Structure for accelerating line importance sampling
git clone git://git.meso-star.com/star-line.git
Log | Files | Refs | README | LICENSE

commit bb184dd379352b5c57349afcf8b294326a4763a5
parent 5d07034cf0c2bf18014853856e8f2fe865bc7fd0
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 21 Sep 2026 14:11:29 +0200

sln-stat: fix options analysis and code layout

Remove the -T option from the list of command line options to be
analyzed.

Minor reformatting of the source code to force the size of a line to 80
columns.

Diffstat:
Msrc/sln_stat.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/sln_stat.c b/src/sln_stat.c @@ -109,7 +109,7 @@ args_init(struct args* args, int argc, char** argv) *args = ARGS_DEFAULT; - while((opt = getopt(argc, argv, "a:dhl:m:n:S:sT:t:v")) != -1) { + while((opt = getopt(argc, argv, "a:dhl:m:n:S:st:v")) != -1) { switch(opt) { case 'a': args->tree = optarg; break; case 'd': args->disable_line_hash_check = 1; break; @@ -364,7 +364,7 @@ realisation w[MEAN] = leaf_ka1 / leaf_proba1; w[SQMEAN] = (leaf_ka1/leaf_proba1)*(leaf_ka2/leaf_proba2); - + exit: FOR_EACH(i, 0, ESTIMATE_COUNT__) out_weights[i] = w[i]; return res; @@ -448,7 +448,8 @@ cmd_run(const struct cmd* cmd) /* Assume that the number of realisations is the same for all estimates */ ASSERT(accum[i].count == accum[0].count); - printf("%-16s: %e +/- %e; %lu\n", estimate_cstr(i), E, SE, (unsigned long)nrejects); + printf("%-16s: %e +/- %e; %lu\n", + estimate_cstr(i), E, SE, (unsigned long)nrejects); } exit: