From 0034aca478ddd873ada8a6aa73f1ff8067f54993 Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 9 Feb 2009 10:03:35 +0000 Subject: [PATCH 1/8] removed unused code --- .../autoHexMeshDriver/autoHexMeshDriver.C | 23 +++++++------------ 1 file changed, 8 insertions(+), 15 deletions(-) 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; From f29b065ea7ee1e6fb26edfbc4017be252e0660b1 Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 9 Feb 2009 15:58:41 +0000 Subject: [PATCH 2/8] cyclics handling --- src/sampling/sampledSurface/isoSurface/isoSurfaceTemplates.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { From c4ddbe1b595d2ff9fe9a5eed69569009673ee8b3 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 10 Feb 2009 14:33:43 +0000 Subject: [PATCH 3/8] improved error message --- .../general/findRefCell/findRefCell.C | 57 ++++++++++--------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/src/finiteVolume/cfdTools/general/findRefCell/findRefCell.C b/src/finiteVolume/cfdTools/general/findRefCell/findRefCell.C index 3572bcb6d0..1926889955 100644 --- a/src/finiteVolume/cfdTools/general/findRefCell/findRefCell.C +++ b/src/finiteVolume/cfdTools/general/findRefCell/findRefCell.C @@ -52,18 +52,19 @@ void Foam::setRefCell if (refCelli < 0 || refCelli >= field.mesh().nCells()) { - FatalErrorIn + FatalIOErrorIn ( - "void Foam::setRefCell" - "(" - " const volScalarField&," - " const dictionary&," - " label& scalar&," - " bool" - ")" + "void Foam::setRefCell\n" + "(\n" + " const volScalarField&,\n" + " const dictionary&,\n" + " label& scalar&,\n" + " bool\n" + ")", + dict ) << "Illegal master cellID " << refCelli << ". Should be 0.." << field.mesh().nCells() - << exit(FatalError); + << exit(FatalIOError); } } else @@ -79,36 +80,38 @@ void Foam::setRefCell label sumHasRef = returnReduce