COMP: use single-parameter fvMeshDistribute

This commit is contained in:
Mark Olesen
2021-03-08 15:34:39 +01:00
parent aa942aadd4
commit 496792f328
3 changed files with 12 additions and 12 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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