Changeset 8947 for trunk/anuga_core/source
- Timestamp:
- Aug 3, 2013, 9:34:38 PM (11 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/neighbour_table_ext.c
r8946 r8947 52 52 53 53 void delete_edge(edge_t *edge) { 54 HASH_DEL( edgetable, edge); /* user: pointer to deletee */54 HASH_DEL( edgetable, edge); /* edge: pointer to deletee */ 55 55 free(edge); 56 56 } 57 57 58 void delete_ all() {58 void delete_edge_all() { 59 59 edge_t *current_edge, *tmp; 60 60 61 61 HASH_ITER(hh, edgetable, current_edge, tmp) { 62 62 HASH_DEL(edgetable, current_edge); /* delete it (edgetable advances to next) */ 63 if (current_edge != NULL) { 64 free(current_edge); /* free it */ 65 } 63 free(current_edge); /* free it */ 66 64 } 67 65 } … … 191 189 //printf("key.i %d key.j %d vol_id %d edge_id %d \n", 192 190 // key.i,key.j,vol_id,edge_id); 193 delete_ all();191 delete_edge_all(); 194 192 return err; 195 193 } … … 246 244 } 247 245 248 delete_ all(); /* free any structures */246 delete_edge_all(); /* free any structures */ 249 247 250 248 return err; … … 384 382 break; 385 383 case 4: 386 delete_ all();384 delete_edge_all(); 387 385 break; 388 386 case 5: … … 405 403 } 406 404 407 delete_ all();405 delete_edge_all(); 408 406 return 0; 409 407 } -
trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/pmesh2domain_ext.c
r8592 r8947 62 62 } 63 63 64 void delete_ all() {64 void delete_segment_all() { 65 65 segment_t *current_segment, *tmp; 66 66 … … 244 244 //printf("key.i %d key.j %d vol_id %d edge_id %d \n", 245 245 // key.i,key.j,vol_id,edge_id); 246 delete_ all();246 delete_segment_all(); 247 247 PyErr_SetString(PyExc_RuntimeError, 248 248 "pmesh2domain.c: build_boundary_dictionary Duplicate segments"); … … 302 302 } 303 303 304 delete_ all(); /* free any structures */304 delete_segment_all(); /* free any structures */ 305 305 306 306 return Py_BuildValue("O", pyobj_tag_dict); -
trunk/anuga_core/source/anuga/utilities/sparse_dok.c
r8758 r8947 72 72 } 73 73 74 void delete_ all(sparse_dok * hashtable) {74 void delete_dok_all(sparse_dok * hashtable) { 75 75 edge_t *current_edge, *tmp; 76 76 … … 83 83 void delete_dok_matrix(sparse_dok * mat) { 84 84 85 delete_ all(mat);85 delete_dok_all(mat); 86 86 free(mat->edgetable); 87 87 free(mat); -
trunk/anuga_core/source/anuga/utilities/sparse_dok.h
r8758 r8947 72 72 void delete_dok_entry(sparse_dok * edgetable,edge_t *edge); 73 73 74 // delete_ all - Remove all edges from the hash table. Used to do clean up75 void delete_ all(sparse_dok * edgetable);74 // delete_dok_all - Remove all edges from the hash table. Used to do clean up 75 void delete_dok_all(sparse_dok * edgetable); 76 76 77 77 // delete_dok_matrix - Free all the memory associated with struct and
Note: See TracChangeset
for help on using the changeset viewer.