[cig-commits] commit: Fix a compiler warning
Mercurial
hg at geodynamics.org
Sun Apr 29 05:34:58 PDT 2012
changeset: 647:1e320edbd744
tag: tip
user: Walter Landry <wlandry at caltech.edu>
date: Sun Apr 29 05:34:47 2012 -0700
files: Geometry/tests/DelaunaySuite.cxx
description:
Fix a compiler warning
diff -r 3fcd4e9e0d72 -r 1e320edbd744 Geometry/tests/DelaunaySuite.cxx
--- a/Geometry/tests/DelaunaySuite.cxx Wed Apr 18 00:28:49 2012 -0700
+++ b/Geometry/tests/DelaunaySuite.cxx Sun Apr 29 05:34:47 2012 -0700
@@ -195,15 +195,15 @@ void DelaunaySuite_TriangulatePolygonMes
if( fabs( sites[j][0] ) < 0.00001 && fabs( sites[j][1] ) < 0.00001 ) {
side = delaunay->voronoiSides[j][0];
voronoiArea = delaunay->voronoiArea[j];
+ a = ( (0.5*side)/sin(0.5*theta) );
+ area = (0.5*a*a*sin(theta))*((float)(i-1));
+
+ if( FABS( area - voronoiArea ) > epsilon )
+ pass = False;
break;
}
}
- a = ( (0.5*side)/sin(0.5*theta) );
- area = (0.5*a*a*sin(theta))*((float)(i-1));
-
- if( FABS( area - voronoiArea ) > epsilon )
- pass = False;
fclose( fp );
More information about the CIG-COMMITS
mailing list