star-line

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

commit e32936df9a3d7dd53706fa9fdc7dc61ac65b400a
parent 75174da4440ada3afde5b37fa583a40ca6af4154
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 29 Jan 2026 12:10:22 +0100

Rename the constant SLN_MESH_USUAL to SLN_MESH_FIT.

This is more explicit and does not suggest that there is a "normal" mesh
type and others, especially since the default mesh type is
SLN_MESH_UPPER.

Diffstat:
Msrc/sln.h | 4++--
Msrc/sln_line.c | 2+-
Msrc/sln_tree_build.c | 2+-
Msrc/test_sln_tree.c | 2+-
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/sln.h b/src/sln.h @@ -54,8 +54,8 @@ struct shtr_isotope_metadata; struct shtr_line_list; enum sln_mesh_type { - SLN_MESH_UPPER, /* Mesh that majorize the spectrum */ - SLN_MESH_USUAL, /* High-definition spectrum mesh */ + SLN_MESH_FIT, /* Fit the spectrum */ + SLN_MESH_UPPER, /* Upper limit of the spectrum */ SLN_MESH_TYPES_COUNT__ }; diff --git a/src/sln_line.c b/src/sln_line.c @@ -544,7 +544,7 @@ line_mesh case SLN_MESH_UPPER: snap_mesh_to_upper_bound(&wavenumbers, &values); break; - case SLN_MESH_USUAL: /* Do nothing */ break; + case SLN_MESH_FIT: /* Do nothing */ break; default: FATAL("Unreachable code.\n"); break; } diff --git a/src/sln_tree_build.c b/src/sln_tree_build.c @@ -90,7 +90,7 @@ eval_ka SLN(node_get_mesh(tree, node, &mesh)); ka = sln_mesh_eval(&mesh, wavenumber); break; - case SLN_MESH_USUAL: + case SLN_MESH_FIT: /* We choose not to make any approximation when calculating the usual * mesh. One thus evaluates ka on the lines of the node and not on the * mesh of the node. */ diff --git a/src/test_sln_tree.c b/src/test_sln_tree.c @@ -213,7 +213,7 @@ test_tree tree_args.mesh_type = SLN_MESH_TYPES_COUNT__; CHK(sln_tree_create(sln, &tree_args, &tree) == RES_BAD_ARG); - tree_args.mesh_type = SLN_MESH_USUAL; + tree_args.mesh_type = SLN_MESH_FIT; tree_args.line_profile = SLN_LINE_PROFILES_COUNT__; CHK(sln_tree_create(sln, &tree_args, &tree) == RES_BAD_ARG);