star-line

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

commit 329b711edc8f5d8651cd18a0f04641b5b26cc552
parent 4d8ea4713863127bd43efea696e729c69e05440a
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 16 May 2022 16:51:35 +0200

Manage pressure and molecule cutoffs when selecting lines

Diffstat:
Msrc/sln_mixture.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/sln_mixture.c b/src/sln_mixture.c @@ -208,6 +208,7 @@ create_lines_view view_args.wavenumber_range[0] = mixture_args->wavenumber_range[0]; view_args.wavenumber_range[1] = mixture_args->wavenumber_range[1]; view_args.nmolecules = mixture_args->nmolecules; + view_args.pressure = mixture_args->pressure; FOR_EACH(imol, 0, mixture_args->nmolecules) { struct shtr_isotope_selection* view_mol = view_args.molecules + imol; @@ -215,14 +216,12 @@ create_lines_view view_mol->id = mixture_mol->id; view_mol->nisotopes = mixture_mol->nisotopes; + view_mol->cutoff = mixture_mol->cutoff; FOR_EACH(iiso, 0, mixture_mol->nisotopes) { view_mol->isotope_ids_local[iiso] = mixture_mol->isotopes[iiso].id_local; } } - /* FIXME we have to handle the lines whose center +/- cutoff intersect the - * spectral range. Currently Star-HITRAN only selects the lines whose center - * is included into the spectral range. One has to fix this! */ res = shtr_lines_view_create(mixture_args->lines, &view_args, &view); if(res != RES_OK) goto error;