star-line

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

commit 06d74cd441d850dc197cd75a29702dc600e873bf
parent 3eb6f036bf4aa674e9633c12e2184e9ec40e3e2b
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 19 Mar 2026 17:17:11 +0100

Correct the sln_mesh_eval function

The check to verify that the requested wave number corresponds to the
last vertex was incorrect.

Diffstat:
Msrc/sln_tree.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sln_tree.c b/src/sln_tree.c @@ -681,7 +681,7 @@ sln_mesh_eval(const struct sln_mesh* mesh, const double wavenumber) return 0; } if(nu == mesh->vertices[0].wavenumber) return mesh->vertices[0].ka; - if(nu == mesh->vertices[1].wavenumber) return mesh->vertices[1].ka; + if(nu == mesh->vertices[n-1].wavenumber) return mesh->vertices[n-1].ka; /* Dichotomic search of the mesh vertex whose wavenumber is greater than or * equal to the submitted wavenumber 'nu' */