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