1 // Voro++, a 3D cell-based Voronoi library
3 // Author : Chris H. Rycroft (LBL / UC Berkeley)
4 // Email : chr@alum.mit.edu
5 // Date : August 30th 2011
8 * \brief Header file for the small helper functions. */
10 #ifndef VOROPP_COMMON_HH
11 #define VOROPP_COMMON_HH
21 void check_duplicate(int n
,double x
,double y
,double z
,int id
,double *qp
);
23 void voro_fatal_error(const char *p
,int status
);
24 void voro_print_positions(std::vector
<double> &v
,FILE *fp
=stdout
);
25 FILE* safe_fopen(const char *filename
,const char *mode
);
26 void voro_print_vector(std::vector
<int> &v
,FILE *fp
=stdout
);
27 void voro_print_vector(std::vector
<double> &v
,FILE *fp
=stdout
);
28 void voro_print_face_vertices(std::vector
<int> &v
,FILE *fp
=stdout
);