diff --git a/etc/settings.csh b/etc/settings.csh index dc312646e0..5eb326c5a5 100644 --- a/etc/settings.csh +++ b/etc/settings.csh @@ -112,7 +112,7 @@ case OpenFOAM: endif set compilerBin=$WM_COMPILER_DIR/bin - set compilerLib=$WM_COMPILER_DIR/lib$WM_COMPILER_LIB_ARCH:$WM_COMPILER_DIR/lib + set compilerLib=$WM_COMPILER_DIR/lib${WM_COMPILER_LIB_ARCH}:$WM_COMPILER_DIR/lib breaksw endsw diff --git a/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C b/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C index 27366a7a7a..15b78e9653 100644 --- a/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C +++ b/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C @@ -1914,27 +1914,28 @@ void Foam::meshRefinement::baffleAndSplitMesh if (debug) { - // Dump all these faces to a faceSet. - faceSet problemGeom(mesh_, "problemFacesGeom", 100); - - const labelList facePatchGeom - ( - markFacesOnProblemCellsGeometric - ( - motionDict, - globalToPatch - ) - ); - forAll(facePatchGeom, faceI) - { - if (facePatchGeom[faceI] != -1) - { - problemGeom.insert(faceI); - } - } - Pout<< "Dumping " << problemGeom.size() - << " problem faces to " << problemGeom.objectPath() << endl; - problemGeom.write(); + //- Note: commented out since not properly parallel yet. + //// Dump all these faces to a faceSet. + //faceSet problemGeom(mesh_, "problemFacesGeom", 100); + // + //const labelList facePatchGeom + //( + // markFacesOnProblemCellsGeometric + // ( + // motionDict, + // globalToPatch + // ) + //); + //forAll(facePatchGeom, faceI) + //{ + // if (facePatchGeom[faceI] != -1) + // { + // problemGeom.insert(faceI); + // } + //} + //Pout<< "Dumping " << problemGeom.size() + // << " problem faces to " << problemGeom.objectPath() << endl; + //problemGeom.write(); faceSet problemTopo(mesh_, "problemFacesTopo", 100); diff --git a/src/autoMesh/autoHexMesh/refinementSurfaces/refinementSurfaces.C b/src/autoMesh/autoHexMesh/refinementSurfaces/refinementSurfaces.C index 5f5d89c29a..2f23e9706c 100644 --- a/src/autoMesh/autoHexMesh/refinementSurfaces/refinementSurfaces.C +++ b/src/autoMesh/autoHexMesh/refinementSurfaces/refinementSurfaces.C @@ -539,27 +539,6 @@ void Foam::refinementSurfaces::findHigherIntersection return; } - - // Precalculate per surface whether it has a minlevelfield - UPtrList minLevelFields(surfaces_.size()); - forAll(surfaces_, surfI) - { - const searchableSurface& geom = allGeometry_[surfaces_[surfI]]; - - if (isA(geom)) - { - const triSurfaceMesh& triMesh = refCast(geom); - minLevelFields.set - ( - surfI, - &const_cast - ( - triMesh.lookupObject("minLevel") - ) - ); - } - } - // Work arrays labelList hitMap(identity(start.size())); pointField p0(start); @@ -568,7 +547,21 @@ void Foam::refinementSurfaces::findHigherIntersection forAll(surfaces_, surfI) { - allGeometry_[surfaces_[surfI]].findLineAny(p0, p1, hitInfo); + const searchableSurface& geom = allGeometry_[surfaces_[surfI]]; + + geom.findLineAny(p0, p1, hitInfo); + + labelList minLevelField; + if (isA(geom)) + { + const triSurfaceMesh& triMesh = refCast(geom); + triMesh.getField + ( + "minLevel", + hitInfo, + minLevelField + ); + } // Copy all hits into arguments, continue with misses @@ -581,14 +574,9 @@ void Foam::refinementSurfaces::findHigherIntersection if (hitInfo[hitI].hit()) { // Check if minLevelField for this surface. - if - ( - minLevelFields.set(surfI) - && minLevelFields[surfI].size() > 0 - ) + if (minLevelField.size() > 0) { - minLocalLevel = - minLevelFields[surfI][hitInfo[hitI].index()]; + minLocalLevel = minLevelField[hitI]; } else { @@ -618,7 +606,7 @@ void Foam::refinementSurfaces::findHigherIntersection } // All done? Note that this decision should be synchronised - if (newI == 0) + if (returnReduce(newI, sumOp