commit 8dc7029926793ebfd5dc522012159f9b7e96f0b5
parent f806fa0bf8c8b4ee0288d4436c3a2486547cc3b7
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Mon, 16 Oct 2023 15:59:51 +0200
Fix API break on sars_load function since sars 0.1
Diffstat:
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/config.mk b/config.mk
@@ -36,7 +36,7 @@ RSYS_VERSION = 0.13
RSYS_CFLAGS = $$($(PKG_CONFIG) $(PCFLAGS) --cflags rsys)
RSYS_LIBS = $$($(PKG_CONFIG) $(PCFLAGS) --libs rsys)
-SARS_VERSION = 0.0
+SARS_VERSION = 0.1
SARS_CFLAGS = $$($(PKG_CONFIG) $(PCFLAGS) --cflags sars)
SARS_LIBS = $$($(PKG_CONFIG) $(PCFLAGS) --libs sars)
diff --git a/src/rnatm_properties.c b/src/rnatm_properties.c
@@ -692,6 +692,7 @@ setup_aerosol_properties
size_t ibands[2];
struct time t0, t1;
struct sars_create_args sars_args = SARS_CREATE_ARGS_DEFAULT;
+ struct sars_load_args sars_load_args = SARS_LOAD_ARGS_NULL;
struct sbuf_create_args sbuf_args = SBUF_CREATE_ARGS_DEFAULT;
struct sbuf_desc sbuf_desc = SBUF_DESC_NULL;
@@ -710,7 +711,9 @@ setup_aerosol_properties
if(res != RES_OK) goto error;
/* Load the aerosol radiative properties */
- res = sars_load(aerosol->sars, aerosol_args->sars_filename);
+ sars_load_args.path = aerosol_args->sars_filename;
+ sars_load_args.memory_mapping = 1;
+ res = sars_load(aerosol->sars, &sars_load_args);
if(res != RES_OK) goto error;
res = check_aerosol_sars_desc(atm, aerosol, aerosol_args);
if(res != RES_OK) goto error;