mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: use single-parameter fvMeshDistribute
This commit is contained in:
@ -407,7 +407,7 @@ void Foam::backgroundMeshDecomposition::initialRefinement()
|
|||||||
icellWeights
|
icellWeights
|
||||||
);
|
);
|
||||||
|
|
||||||
fvMeshDistribute distributor(mesh_, mergeDist_);
|
fvMeshDistribute distributor(mesh_);
|
||||||
|
|
||||||
autoPtr<mapDistributePolyMesh> mapDist = distributor.distribute
|
autoPtr<mapDistributePolyMesh> mapDist = distributor.distribute
|
||||||
(
|
(
|
||||||
@ -987,7 +987,7 @@ Foam::backgroundMeshDecomposition::distribute
|
|||||||
|
|
||||||
Info<< " Redistributing background mesh cells" << endl;
|
Info<< " Redistributing background mesh cells" << endl;
|
||||||
|
|
||||||
fvMeshDistribute distributor(mesh_, mergeDist_);
|
fvMeshDistribute distributor(mesh_);
|
||||||
|
|
||||||
autoPtr<mapDistributePolyMesh> mapDist = distributor.distribute(newDecomp);
|
autoPtr<mapDistributePolyMesh> mapDist = distributor.distribute(newDecomp);
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2012-2016 OpenFOAM Foundation
|
Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2016-2020 OpenCFD Ltd.
|
Copyright (C) 2016-2021 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -532,15 +532,15 @@ int main(int argc, char *argv[])
|
|||||||
).decomposer().decompose(mesh, mesh.cellCentres());
|
).decomposer().decompose(mesh, mesh.cellCentres());
|
||||||
|
|
||||||
// Global matching tolerance
|
// Global matching tolerance
|
||||||
const scalar tolDim = getMergeDistance
|
//const scalar tolDim = getMergeDistance
|
||||||
(
|
//(
|
||||||
args,
|
// args,
|
||||||
runTime,
|
// runTime,
|
||||||
mesh.bounds()
|
// mesh.bounds()
|
||||||
);
|
//);
|
||||||
|
|
||||||
// Mesh distribution engine
|
// Mesh distribution engine
|
||||||
fvMeshDistribute distributor(mesh, tolDim);
|
fvMeshDistribute distributor(mesh);
|
||||||
|
|
||||||
Info<< "Wanted distribution:"
|
Info<< "Wanted distribution:"
|
||||||
<< distributor.countCells(decomp) << nl << endl;
|
<< distributor.countCells(decomp) << nl << endl;
|
||||||
|
|||||||
@ -70,7 +70,7 @@ class mapDistributePolyMesh;
|
|||||||
|
|
||||||
class fvMeshDistribute
|
class fvMeshDistribute
|
||||||
{
|
{
|
||||||
// Private data
|
// Private Data
|
||||||
|
|
||||||
//- Underlying fvMesh
|
//- Underlying fvMesh
|
||||||
fvMesh& mesh_;
|
fvMesh& mesh_;
|
||||||
@ -360,7 +360,7 @@ public:
|
|||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
//- Construct from mesh
|
//- Construct from mesh
|
||||||
fvMeshDistribute(fvMesh& mesh);
|
explicit fvMeshDistribute(fvMesh& mesh);
|
||||||
|
|
||||||
|
|
||||||
// Member Functions
|
// Member Functions
|
||||||
|
|||||||
Reference in New Issue
Block a user