Bugfix in search_for_outside_edge routine.
[voro++.git] / trunk / zeo / r_table.cc
blobbcfce3b0d01b36731990972df7194dd9411ed08f
1 // Voro++, a 3D cell-based Voronoi library
2 //
3 // Author : Chris H. Rycroft (LBL / UC Berkeley)
4 // Email : chr@alum.mit.edu
5 // Date : July 1st 2008
7 #include <cstdlib>
9 const int n_table=2;
11 const char rad_ctable[][4]={
12 "O",
13 "Si"
16 const double rad_table[]={
17 0.8,
18 0.5
21 double radial_lookup(char *buffer) {
22 for(int i=0;i<n_table;i++) if(strcmp(rad_ctable[i],buffer)==0) return rad_table[i];
23 fprintf(stderr,"Entry \"%s\" not found in table\n",buffer);
24 exit(VOROPP_FILE_ERROR);