diff --git a/src/autoMesh/autoHexMesh/autoHexMeshDriver/autoHexMeshDriver.C b/src/autoMesh/autoHexMesh/autoHexMeshDriver/autoHexMeshDriver.C index 0438fa276d..5bb4a0ee2d 100644 --- a/src/autoMesh/autoHexMesh/autoHexMeshDriver/autoHexMeshDriver.C +++ b/src/autoMesh/autoHexMesh/autoHexMeshDriver/autoHexMeshDriver.C @@ -317,25 +317,18 @@ Foam::autoHexMeshDriver::autoHexMeshDriver Info<< surfaces().names()[surfI] << ':' << nl << nl; - //const triSurfaceMesh& s = surfaces()[surfI]; - //const geometricSurfacePatchList& regions = s.patches(); - //labelList nTrisPerRegion(surfaces().countRegions(s)); - forAll(regNames, i) { - //if (nTrisPerRegion[i] > 0) - //{ - label patchI = meshRefinement::addPatch - ( - mesh, - regNames[i], - wallPolyPatch::typeName - ); + label patchI = meshRefinement::addPatch + ( + mesh, + regNames[i], + wallPolyPatch::typeName + ); - Info<< patchI << '\t' << regNames[i] << nl; + Info<< patchI << '\t' << regNames[i] << nl; - globalToPatch_[surfaces().globalRegion(surfI, i)] = patchI; - //} + globalToPatch_[surfaces().globalRegion(surfI, i)] = patchI; } Info<< nl; diff --git a/src/sampling/sampledSurface/isoSurface/isoSurfaceTemplates.C b/src/sampling/sampledSurface/isoSurface/isoSurfaceTemplates.C index 50888ee31d..2024952864 100644 --- a/src/sampling/sampledSurface/isoSurface/isoSurfaceTemplates.C +++ b/src/sampling/sampledSurface/isoSurface/isoSurfaceTemplates.C @@ -369,7 +369,7 @@ void Foam::isoSurface::generateTriPoints { const polyPatch& pp = patches[patchI]; - if (pp.coupled()) + if (isA(pp)) { if (refCast(pp).owner()) {