rnatm

Load and structure data describing an atmosphere
git clone git://git.meso-star.fr/rnatm.git
Log | Files | Refs | README | LICENSE

commit f806fa0bf8c8b4ee0288d4436c3a2486547cc3b7
parent 979ad86a41b2638ee2a6ad62cb7ea1ec6b7b87cf
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Sat, 14 Oct 2023 10:27:07 +0200

Fix API break on sck_load function since sck 0.1

Diffstat:
Mconfig.mk | 2+-
Msrc/rnatm_properties.c | 5++++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/config.mk b/config.mk @@ -44,7 +44,7 @@ SBUF_VERSION = 0.0 SBUF_CFLAGS = $$($(PKG_CONFIG) $(PCFLAGS) --cflags sbuf) SBUF_LIBS = $$($(PKG_CONFIG) $(PCFLAGS) --libs sbuf) -SCK_VERSION = 0.0 +SCK_VERSION = 0.1 SCK_CFLAGS = $$($(PKG_CONFIG) $(PCFLAGS) --cflags sck) SCK_LIBS = $$($(PKG_CONFIG) $(PCFLAGS) --libs sck) diff --git a/src/rnatm_properties.c b/src/rnatm_properties.c @@ -610,6 +610,7 @@ setup_gas_properties(struct rnatm* atm, const struct rnatm_gas_args* gas_args) { char buf[128]; struct time t0, t1; + struct sck_load_args sck_load_args = SCK_LOAD_ARGS_NULL; struct sck_band band_low = SCK_BAND_NULL; struct sck_band band_upp = SCK_BAND_NULL; struct sck_create_args sck_args = SCK_CREATE_ARGS_DEFAULT; @@ -651,7 +652,9 @@ setup_gas_properties(struct rnatm* atm, const struct rnatm_gas_args* gas_args) if(res != RES_OK) goto error; /* Load correlated-K */ - res = sck_load(atm->gas.ck, gas_args->sck_filename); + sck_load_args.path = gas_args->sck_filename; + sck_load_args.memory_mapping = 1; + res = sck_load(atm->gas.ck, &sck_load_args); if(res != RES_OK) goto error; res = check_gas_ck_desc(atm, gas_args); if(res != RES_OK) goto error;