diff --git a/common/TwoPhase.cpp b/common/TwoPhase.cpp index d262d5c6..c01ab7c5 100644 --- a/common/TwoPhase.cpp +++ b/common/TwoPhase.cpp @@ -585,11 +585,6 @@ void TwoPhase::ComponentAverages() i, j, k, Nx, Ny, Nz); - /* Compute the Euler characteristic - * count all vertices, edges and faces (triangles) - * Euler Number = vertices - edges + faces - * double geomavg_EulerCharacteristic(PointList, PointCount, TriList, TriCount); - */ if (n_nw_pts+n_ns_pts > 0){ /* double euler; @@ -780,52 +775,18 @@ void TwoPhase::ComponentAverages() } //........................................................................... - // Compute the Euler characteristic + + /* Compute the Euler characteristic + * count all vertices, edges and faces (triangles) + * Euler Number = vertices - edges + faces + * double geomavg_EulerCharacteristic(PointList, PointCount, TriList, TriCount); + */ n_nw_pts=n_nw_tris=0; geomavg_MarchingCubes(SDn,fluid_isovalue,i,j,k,nw_pts,n_nw_pts,nw_tris,n_nw_tris); if (n_nw_pts > 0 ){ - int nvert = n_nw_pts; - int nside = 2*nvert-3; - int nface = nvert-2; - //........................................................... - // Check that this point is not on a previously computed face - // Note direction that the marching cubes algorithm marches - // In parallel, other sub-domains fill in the lower boundary - for (int p=0; p