mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: insideCells: does not run parallel. Fixes #162.
This commit is contained in:
@ -3,7 +3,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) 2011-2015 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation | Copyright (C) 2016 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -36,6 +36,7 @@ Description
|
|||||||
#include "triSurface.H"
|
#include "triSurface.H"
|
||||||
#include "triSurfaceSearch.H"
|
#include "triSurfaceSearch.H"
|
||||||
#include "cellSet.H"
|
#include "cellSet.H"
|
||||||
|
#include "globalMeshData.H"
|
||||||
|
|
||||||
using namespace Foam;
|
using namespace Foam;
|
||||||
|
|
||||||
@ -51,7 +52,6 @@ int main(int argc, char *argv[])
|
|||||||
"Surface must be closed and singly connected."
|
"Surface must be closed and singly connected."
|
||||||
);
|
);
|
||||||
|
|
||||||
argList::noParallel();
|
|
||||||
argList::validArgs.append("surfaceFile");
|
argList::validArgs.append("surfaceFile");
|
||||||
argList::validArgs.append("cellSet");
|
argList::validArgs.append("cellSet");
|
||||||
|
|
||||||
@ -84,7 +84,8 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Info<< "Selected " << insideCells.size() << " of " << mesh.nCells()
|
Info<< "Selected " << returnReduce(insideCells.size(), sumOp<label>())
|
||||||
|
<< " of " << mesh.globalData().nTotalCells()
|
||||||
<< " cells" << nl << nl
|
<< " cells" << nl << nl
|
||||||
<< "Writing selected cells to cellSet " << insideCells.name()
|
<< "Writing selected cells to cellSet " << insideCells.name()
|
||||||
<< nl << nl
|
<< nl << nl
|
||||||
|
|||||||
Reference in New Issue
Block a user