Ignore:
Timestamp:
Aug 3, 2013, 9:34:38 PM (11 years ago)
Author:
steve
Message:

changed delete_all to different name in each c file

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  
    5252
    5353void delete_edge(edge_t *edge) {
    54     HASH_DEL( edgetable, edge);  /* user: pointer to deletee */
     54    HASH_DEL( edgetable, edge);  /* edge: pointer to deletee */
    5555    free(edge);
    5656}
    5757
    58 void delete_all() {
     58void delete_edge_all() {
    5959  edge_t *current_edge, *tmp;
    6060
    6161  HASH_ITER(hh, edgetable, current_edge, tmp) {
    6262    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 */
    6664  }
    6765}
     
    191189        //printf("key.i %d key.j %d vol_id %d edge_id %d \n",
    192190        //       key.i,key.j,vol_id,edge_id);
    193         delete_all();
     191        delete_edge_all();
    194192        return err;
    195193    }
     
    246244    }
    247245   
    248     delete_all();  /* free any structures */
     246    delete_edge_all();  /* free any structures */
    249247
    250248    return err;
     
    384382                break;
    385383            case 4:
    386                 delete_all();
     384                delete_edge_all();
    387385                break;
    388386            case 5:
     
    405403    }
    406404
    407     delete_all(); 
     405    delete_edge_all();
    408406    return 0;
    409407}
  • trunk/anuga_core/source/anuga/abstract_2d_finite_volumes/pmesh2domain_ext.c

    r8592 r8947  
    6262}
    6363
    64 void delete_all() {
     64void delete_segment_all() {
    6565    segment_t *current_segment, *tmp;
    6666
     
    244244        //printf("key.i %d key.j %d vol_id %d edge_id %d \n",
    245245        //       key.i,key.j,vol_id,edge_id);
    246         delete_all();
     246        delete_segment_all();
    247247        PyErr_SetString(PyExc_RuntimeError,
    248248                "pmesh2domain.c: build_boundary_dictionary Duplicate segments");
     
    302302    }
    303303
    304     delete_all(); /* free any structures */
     304    delete_segment_all(); /* free any structures */
    305305
    306306    return Py_BuildValue("O", pyobj_tag_dict);
  • trunk/anuga_core/source/anuga/utilities/sparse_dok.c

    r8758 r8947  
    7272}
    7373
    74 void delete_all(sparse_dok * hashtable) {
     74void delete_dok_all(sparse_dok * hashtable) {
    7575  edge_t *current_edge, *tmp;
    7676
     
    8383void delete_dok_matrix(sparse_dok * mat) {
    8484
    85     delete_all(mat);
     85    delete_dok_all(mat);
    8686    free(mat->edgetable);
    8787    free(mat);
  • trunk/anuga_core/source/anuga/utilities/sparse_dok.h

    r8758 r8947  
    7272void delete_dok_entry(sparse_dok * edgetable,edge_t *edge);
    7373
    74 // delete_all - Remove all edges from the hash table. Used to do clean up
    75 void delete_all(sparse_dok * edgetable);
     74// delete_dok_all - Remove all edges from the hash table. Used to do clean up
     75void delete_dok_all(sparse_dok * edgetable);
    7676
    7777// delete_dok_matrix - Free all the memory associated with struct and
Note: See TracChangeset for help on using the changeset viewer.