star-line

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

commit 7b34fc96beb1c421c9aae7f94ab96e34708fa205
parent e85353a90720761364e6c00cc09bfe1e768b6cb7
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 12 Feb 2026 12:51:02 +0100

Fix the compilation of the sln-build utility

Changes made to the API of the sln_tree_write function had not been
reported.

Diffstat:
Msrc/sln_build.c | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/src/sln_build.c b/src/sln_build.c @@ -436,6 +436,7 @@ static res_T cmd_run(struct cmd* cmd) { struct sln_tree_create_args tree_args = SLN_TREE_CREATE_ARGS_DEFAULT; + struct sln_tree_write_args write_args = SLN_TREE_WRITE_ARGS_NULL; struct sln_tree* tree = NULL; res_T res = RES_OK; @@ -449,14 +450,11 @@ cmd_run(struct cmd* cmd) tree_args.mesh_decimation_err = cmd->args.mesh_decimation_err; tree_args.mesh_type = cmd->args.mesh_type; - res = setup_tree_mixture(cmd, tree_args.molecules); - if(res != RES_OK) goto error; - - res = sln_tree_create(cmd->sln, &tree_args, &tree); - if(res != RES_OK) goto error; + write_args.filename = cmd->args.output; - res = sln_tree_write(tree, cmd->output); - if(res != RES_OK) goto error; + if((res = setup_tree_mixture(cmd, tree_args.molecules)) != RES_OK) goto error; + if((res = sln_tree_create(cmd->sln, &tree_args, &tree)) != RES_OK) goto error; + if((res = sln_tree_write(tree, &write_args)) != RES_OK) goto error; exit: if(tree) SLN(tree_ref_put(tree));