commit 6d97d2c07b48bc6fffcfe3e726befefc1f88dff2
parent 723a1a935d3e82baf85f40c886b3491ca74c399d
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 31 Aug 2023 15:49:16 +0200
Fix the API break introduced by Star-Mesh 0.1
Diffstat:
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/atrstm_setup_uvm.c b/src/atrstm_setup_uvm.c
@@ -82,8 +82,9 @@ setup_unstructured_volumetric_mesh
struct suvm_volume** out_volume)
{
struct suvm_tetrahedral_mesh_args mesh_args = SUVM_TETRAHEDRAL_MESH_ARGS_NULL;
- struct smsh_create_args args = SMSH_CREATE_ARGS_DEFAULT;
+ struct smsh_create_args smsh_create_args = SMSH_CREATE_ARGS_DEFAULT;
struct smsh_desc smsh_desc = SMSH_DESC_NULL;
+ struct smsh_load_args smsh_load_args = SMSH_LOAD_ARGS_NULL;
struct smsh* smsh = NULL;
struct suvm_volume* volume = NULL;
struct time t0, t1;
@@ -97,12 +98,14 @@ setup_unstructured_volumetric_mesh
time_current(&t0);
/* Load the volumetric mesh */
- args.logger = atrstm->logger;
- args.allocator = atrstm->allocator;
- args.verbose = atrstm->verbose;
- res = smsh_create(&args, &smsh);
+ smsh_create_args.logger = atrstm->logger;
+ smsh_create_args.allocator = atrstm->allocator;
+ smsh_create_args.verbose = atrstm->verbose;
+ res = smsh_create(&smsh_create_args, &smsh);
if(res != RES_OK) goto error;
- res = smsh_load(smsh, smsh_filename);
+ smsh_load_args.path = smsh_filename;
+ smsh_load_args.memory_mapping = 1;
+ 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;