star-ck

Describe the radiative properties of gas mixtures
git clone git://git.meso-star.fr/star-ck.git
Log | Files | Refs | README | LICENSE

commit d8c217066d55d97524b27bb2c50bd545e05451a7
parent 5441cbca729589bfc67a5dbbbdf66b68c8728db1
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 26 Aug 2022 17:00:07 +0200

The upper band limit is exclusive

Diffstat:
Mdoc/sck.5.scd | 4++--
Msrc/sck.c | 2+-
Msrc/sck.h | 6+++---
3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/doc/sck.5.scd b/doc/sck.5.scd @@ -79,8 +79,8 @@ significant bytes are stored first. <band> ::= <band-low> <band-upp> <#quad-pts> <quad-pt-list> <band-id> ::= UINT64 -<band-low> ::= DOUBLE # In cm^-1 -<band-upp> ::= DOUBLE # In cm^-1 +<band-low> ::= DOUBLE # In cm^-1 (inclusive) +<band-upp> ::= DOUBLE # In cm^-1 (exclusive) <#quad-pts> ::= UINT64 --- diff --git a/src/sck.c b/src/sck.c @@ -260,7 +260,7 @@ load_stream(struct sck* sck, FILE* stream, const char* stream_name) if(iband > 0 && band[0].low < band[-1].upp) { log_err(sck, "%s: bands must be sorted in ascending order and must not " - "overlap (band %lu in [%g, %g] nm; band %lu in [%g, %g] nm).\n", + "overlap (band %lu in [%g, %g[ nm; band %lu in [%g, %g[ nm).\n", stream_name, (unsigned long)(iband-1), band[-1].low, band[-1].upp, (unsigned long)(iband), band[ 0].low, band[ 0].upp); diff --git a/src/sck.h b/src/sck.h @@ -51,12 +51,12 @@ static const struct sck_create_args SCK_CREATE_ARGS_DEFAULT = SCK_CREATE_ARGS_DEFAULT__; struct sck_band { - double lower; /* Lower band wavenumber in cm^-1 */ - double upper; /* Upper band wavenumber in cm^-1 */ + double lower; /* Lower band wavenumber in cm^-1 (inclusive) */ + double upper; /* Upper band wavenumber in cm^-1 (exclusive) */ size_t quad_pts_count; /* #quadrature points */ size_t id; - float* ks_list; /* Per node ks */ + float* ks_list; /* Per node ks */ /* Internal data */ const struct sck* sck__;