Trisurf Monte Carlo simulator
Samo Penic
2010-12-27 3131dcbf73ff8a0699a688119d57eaf386f49590
src/general.h
@@ -2,6 +2,7 @@
#define _GENERAL_H
#include<stdarg.h>
#include<stdio.h>
/* @brief This is a header file, defining general constants and structures.
  * @file header.h
@@ -192,24 +193,34 @@
    ts_uint n;
    ts_triangle **tria;
};
typedef struct ts_triangle_list ts_triangle_list;
typedef struct ts_cell_data {
    ts_vertex **vertex;
    ts_uint nvertex;
} ts_cell_data;
typedef struct ts_cell {
    ts_uint idx;
    ts_vertex **vertex;
    ts_uint nvertex;
} ts_cell;
    ts_cell_data *data;
} ts_cell;
typedef struct {
   ts_vertex *vlist;
   ts_bond *blist;
   ts_triangle *tlist;
    ts_cell *clist;
   ts_uint nshell;
typedef struct ts_cell_list{
    ts_uint ncmax[3];
    ts_uint cellno;
    ts_cell **cell;
    ts_double dcell;
    ts_double shift;
    ts_double max_occupancy;
    ts_uint ncmax[3];
} ts_cell_list;
typedef struct {
   ts_vertex_list *vlist;
   ts_bond_list *blist;
   ts_triangle_list *tlist;
    ts_cell_list *clist;
   ts_uint nshell;
    ts_double bending_rigidity;
    ts_double dmax;
    ts_double stepsize;
@@ -237,7 +248,7 @@
*/
void fatal(char *text, ts_int errcode);
//ts_uint ts_fprintf(FILE *fd, char *fmt, va_list ap);
ts_uint ts_fprintf(FILE *fd, char *fmt, ...);
#define VTX(n) &(vlist->vtx[n])
#define VTX_DATA(n) vlist->vtx[n].data