Reset platonic code.
[voro++.git] / branches / 2d_boundary / examples / test_import.cc
blobf7142af27658ff318859a4104e9c891a2bad863c
1 #include "voro++_2d.hh"
3 int main() {
5 // Initialize the container class to be the unit square, with
6 // non-periodic boundary conditions. Divide it into a 6 by 6 grid, with
7 // an initial memory allocation of 16 particles per grid square.
8 container_2d con(0,1,0,1,6,6,false,false,false,16);
10 // Import the spiral data set
11 con.import("particles_spiral");
13 // Do a custom computation on the Voronoi cells, printing the IDs,
14 // positions, and Voronoi cell areas to a file
15 con.print_custom("%i %x %y %a","particles_spiral.out");