star-hitran

Load line-by-line data from the HITRAN database
git clone git://git.meso-star.fr/star-hitran.git
Log | Files | Refs | README | LICENSE

commit c9e619eaffa4a7a23c1153e43539ac589c3e1f83
parent b5345f96b2402c6959fc7ce8b71562125382b762
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 10 Mar 2026 09:48:24 +0100

Rename the constant SHTR_MAX_ISOTOPE_COUNT

"ISOTOPE" was misspelled with a final "S".

Diffstat:
Msrc/shtr.h | 2+-
Msrc/shtr_isotope_metadata.c | 4++--
Msrc/test_shtr_isotope_metadata.c | 2+-
3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/shtr.h b/src/shtr.h @@ -43,7 +43,7 @@ #define SHTR(Func) shtr_ ## Func #endif -#define SHTR_MAX_ISOTOPES_COUNT 16 +#define SHTR_MAX_ISOTOPE_COUNT 16 /* List of HITRAN species. They are classified as in the HITRAN database ,i.e. * their value corresponds to that of HITRAN. Note that they start at 1 rather diff --git a/src/shtr_isotope_metadata.c b/src/shtr_isotope_metadata.c @@ -661,7 +661,7 @@ hash_molecule { const struct molecule* molecule = NULL; const struct shtr_isotope* isotopes = NULL; - struct shtr_isotope isotopes_sorted[SHTR_MAX_ISOTOPES_COUNT] = {0}; + struct shtr_isotope isotopes_sorted[SHTR_MAX_ISOTOPE_COUNT] = {0}; size_t i = 0; size_t nisotopes = 0; @@ -677,7 +677,7 @@ hash_molecule #undef HASH nisotopes = molecule->isotopes_range[1] - molecule->isotopes_range[0]; - ASSERT(nisotopes <= SHTR_MAX_ISOTOPES_COUNT); + ASSERT(nisotopes <= SHTR_MAX_ISOTOPE_COUNT); isotopes = darray_isotope_cdata_get(&metadata->isotopes) + molecule->isotopes_range[0]; diff --git a/src/test_shtr_isotope_metadata.c b/src/test_shtr_isotope_metadata.c @@ -313,7 +313,7 @@ static void test_hash(struct shtr* shtr) { struct shtr_molecule CO2_custom = SHTR_MOLECULE_NULL; - struct shtr_isotope isotopes_custom[SHTR_MAX_ISOTOPES_COUNT]; + struct shtr_isotope isotopes_custom[SHTR_MAX_ISOTOPE_COUNT]; struct shtr_isotope_metadata* mdata1 = NULL; struct shtr_isotope_metadata* mdata2 = NULL;