mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: cellClassification: parallel running
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -388,7 +388,8 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
const point& outsidePoint = outsidePts[outsideI];
|
const point& outsidePoint = outsidePts[outsideI];
|
||||||
|
|
||||||
if (queryMesh.findCell(outsidePoint, -1, false) == -1)
|
label cellI = queryMesh.findCell(outsidePoint, -1, false);
|
||||||
|
if (returnReduce(cellI, maxOp<label>()) == -1)
|
||||||
{
|
{
|
||||||
FatalErrorIn(args.executable())
|
FatalErrorIn(args.executable())
|
||||||
<< "outsidePoint " << outsidePoint
|
<< "outsidePoint " << outsidePoint
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
|
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -237,27 +237,6 @@ void Foam::surfaceSets::getSurfaceSets
|
|||||||
// Construct search engine on mesh
|
// Construct search engine on mesh
|
||||||
meshSearch queryMesh(mesh, true);
|
meshSearch queryMesh(mesh, true);
|
||||||
|
|
||||||
|
|
||||||
// Check all 'outside' points
|
|
||||||
forAll(outsidePts, outsideI)
|
|
||||||
{
|
|
||||||
const point& outsidePoint = outsidePts[outsideI];
|
|
||||||
|
|
||||||
// Find cell point is in. Linear search.
|
|
||||||
if (queryMesh.findCell(outsidePoint, -1, false) == -1)
|
|
||||||
{
|
|
||||||
FatalErrorIn
|
|
||||||
(
|
|
||||||
"surfaceSets::getSurfaceSets"
|
|
||||||
"(const polyMesh&, const fileName&, const triSurface&"
|
|
||||||
", const triSurfaceSearch&, const pointField&"
|
|
||||||
", labelHashSet&, labelHashSet&, labelHashSet&)"
|
|
||||||
) << "outsidePoint " << outsidePoint
|
|
||||||
<< " is not inside any cell"
|
|
||||||
<< exit(FatalError);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Cut faces with surface and classify cells
|
// Cut faces with surface and classify cells
|
||||||
cellClassification cellType
|
cellClassification cellType
|
||||||
(
|
(
|
||||||
|
|||||||
Reference in New Issue
Block a user