From 81b488a8d2d485d3cd359a03666137098722843c Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Thu, 16 Dec 2010 15:16:20 +0000 Subject: [PATCH] changed 'marked_entities' to ptr type --- src/h5core/h5t_store.c | 12 ++++++------ src/h5core/h5t_types_private.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/h5core/h5t_store.c b/src/h5core/h5t_store.c index 2c5b99d..916fd79 100644 --- a/src/h5core/h5t_store.c +++ b/src/h5core/h5t_store.c @@ -350,7 +350,7 @@ h5t_mark_entity ( const h5_loc_id_t entity_id ) { h5t_fdata_t* const t = f->t; - return h5priv_append_to_idlist (f, &t->marked_entities, entity_id); + return h5priv_append_to_idlist (f, t->marked_entities, entity_id); } /* @@ -379,7 +379,7 @@ h5t_pre_refine ( h5_file_t* const f ) { h5t_fdata_t* const t = f->t; - unsigned int num_elems_to_refine = t->marked_entities.num_items; + unsigned int num_elems_to_refine = t->marked_entities->num_items; unsigned int num_elems_to_add = 0; unsigned int num_vertices_to_add = 0; @@ -410,8 +410,8 @@ h5t_refine_marked_elems ( ) { h5t_fdata_t* const t = f->t; int i; - for (i = 0; i < t->marked_entities.num_items; i++) { - TRY( h5tpriv_refine_elem (f, t->marked_entities.items[i]) ); + for (i = 0; i < t->marked_entities->num_items; i++) { + TRY( h5tpriv_refine_elem (f, t->marked_entities->items[i]) ); } return H5_SUCCESS; } @@ -423,7 +423,7 @@ h5t_post_refine ( h5t_fdata_t* const t = f->t; TRY( h5t_end_store_vertices (f) ); TRY( h5t_end_store_elems (f) ); - return h5priv_free_idlist_items (f, &t->marked_entities); + return h5priv_free_idlist (f, &t->marked_entities); } @@ -437,7 +437,7 @@ h5t_begin_refine_elems ( Pre-allocate space for items to avoid allocating small pieces of memory. */ - TRY( h5priv_alloc_idlist_items (f, &t->marked_entities, 2048) ); + TRY( h5priv_alloc_idlist (f, &t->marked_entities, 2048) ); return H5_SUCCESS; } diff --git a/src/h5core/h5t_types_private.h b/src/h5core/h5t_types_private.h index 6ba9fa2..547cd36 100644 --- a/src/h5core/h5t_types_private.h +++ b/src/h5core/h5t_types_private.h @@ -166,7 +166,7 @@ typedef struct h5t_fdata { h5_dsinfo_t dsinfo_num_elems; h5_dsinfo_t dsinfo_num_elems_on_leaf_level; - h5_idlist_t marked_entities; + h5_idlist_t* marked_entities; /*** Adjacencies ***/ h5t_adjacencies_t adjacencies;