Trisurf Monte Carlo simulator
Samo Penic
2010-12-05 b01cc1ac677dc712c27337be8ee4f11ea336f31b
src/cell.c
@@ -77,7 +77,7 @@
    cell->data->nvertex++;
   cell->data->vertex=(ts_vertex **)realloc(cell->data->vertex,cell->data->nvertex*sizeof(ts_vertex *));
      if(vtx->data->neigh == NULL){
         fatal("Reallocation of memory failed during insertion of vertex neighbour in vertex_add_neighbour",3);
         fatal("Reallocation of memory failed during insertion of vertex in cell_add_vertex",3);
        }
    cell->data->vertex[cell->data->nvertex-1]=vtx;
    return TS_SUCCESS;