From cd3513826acfab7b607d36d4c457b577def734c5 Mon Sep 17 00:00:00 2001 From: chr Date: Wed, 27 May 2015 03:18:57 +0000 Subject: [PATCH] Fixes to new SA/volume code. git-svn-id: https://codeforge.lbl.gov/anonscm/voro@585 6221c96e-593b-4ce1-a500-64c4038a1943 --- trunk/src/cell.cc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/trunk/src/cell.cc b/trunk/src/cell.cc index dfa3d92..9c9f4b6 100644 --- a/trunk/src/cell.cc +++ b/trunk/src/cell.cc @@ -1616,7 +1616,7 @@ double voronoicell_base::volume() { * \param[out] vo the volume functional. */ void voronoicell_base::minkowski(double r,double &ar,double &vo) { int i,j,k,l,m,n; - ar=vo=0; + ar=vo=0;r*=2; for(i=1;i=0) { @@ -1680,46 +1680,48 @@ inline void voronoicell_base::minkowski_contrib(int i,int k,int m,double r,doubl void voronoicell_base::minkowski_edge(double x0,double r1,double s1,double r2,double s2,double r,double &ar,double &vo) { double r12=r2-r1,s12=s2-s1,l12=r12*r12+s12*s12; - printf("ME %g %g %g %g\n",r1,s1,r2,s2); if(l12