rnatm

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

commit 1ddf7443c866002fb73cbe55470a8979c9518df8
parent 82ce95cee9c84e23557b7320882dc4ef5a2a0f24
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 25 Sep 2023 17:07:04 +0200

Fix API break introduced by Star-Mesh 0.1

Diffstat:
Msrc/rnatm_mesh.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/rnatm_mesh.c b/src/rnatm_mesh.c @@ -90,13 +90,16 @@ setup_uvm size_t* nvertices) { struct suvm_tetrahedral_mesh_args mesh_args = SUVM_TETRAHEDRAL_MESH_ARGS_NULL; + struct smsh_load_args smsh_load_args = SMSH_LOAD_ARGS_NULL; struct smsh_desc smsh_desc = SMSH_DESC_NULL; struct suvm_volume* volume = NULL; res_T res = RES_OK; ASSERT(atm && args && filename && suvm && smsh && out_volume); /* Load and retrieve the Star-Mesh data */ - res = smsh_load(smsh, filename); + smsh_load_args.path = filename; + smsh_load_args.memory_mapping = 0; + res = smsh_load(smsh, &smsh_load_args); if(res != RES_OK) goto error; res = smsh_get_desc(smsh, &smsh_desc); if(res != RES_OK) goto error;