diff --git a/meshLibrary/utilities/meshes/triSurf/triSurfAddressing.C b/meshLibrary/utilities/meshes/triSurf/triSurfAddressing.C index 08607640dac2a3eb9d69979e6208d73c5965d5e8..6cb1d9b074a10ec500d0ccb09947e216d4c6534c 100644 --- a/meshLibrary/utilities/meshes/triSurf/triSurfAddressing.C +++ b/meshLibrary/utilities/meshes/triSurf/triSurfAddressing.C @@ -81,28 +81,22 @@ void triSurfAddressing::calculateEdges() const const label triI = pFacets(pI, pfI); const labelledTri& tri = facets_[triI]; - label pos(-1); forAll(tri, i) { if( tri[i] == pI ) { - pos = i; - - - if( tri[(pos+1)%3] >= pI ) + if( tri[(i+1)%3] >= pI ) edgesAtPoint.insert ( - std::make_pair(pI, tri[(pos+1)%3]) + std::make_pair(pI, tri[(i+1)%3]) ); - if( tri[(pos+2)%3] >= pI ) + if( tri[(i+2)%3] >= pI ) edgesAtPoint.insert ( - std::make_pair(pI, tri[(pos+2)%3]) + std::make_pair(pI, tri[(i+2)%3]) ); } } - - } std::set >::const_iterator it; @@ -119,7 +113,6 @@ void triSurfAddressing::calculateEdges() const # endif nEdgesForThread[threadI] = edgesHelper.size(); - # ifdef USE_OMP # pragma omp critical # endif