From 1923d091e13f0be2c43c7aa10e28afc0fbd9f897 Mon Sep 17 00:00:00 2001 From: James E McClure Date: Sun, 22 Nov 2015 19:37:53 -0500 Subject: [PATCH] Trying to fix Euler characteristic (fail unit tests/TestTorus) --- common/pmmc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/pmmc.h b/common/pmmc.h index c23ff517..cb155ae8 100644 --- a/common/pmmc.h +++ b/common/pmmc.h @@ -4440,7 +4440,7 @@ inline double geomavg_EulerCharacteristic(DTMutableList &Points, IntArray nvert = 0.25*double(npts); // Subtract shared sides to avoid double counting //nside = 3.0*ntris - ShareSideInternal - 0.5*CountSideExternal; - nside = 2.0*double(npts)- 3.0 - 0.5*double(npts-1); + nside = 2.0*double(npts)- 3.0 - 0.5*double(npts); // Number of faces is number of triangles nface = 1.0*ntris;