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
);
fvMeshDistribute distributor(mesh_, mergeDist_);
fvMeshDistribute distributor(mesh_);
autoPtr<mapDistributePolyMesh> mapDist = distributor.distribute
(
@ -987,7 +987,7 @@ Foam::backgroundMeshDecomposition::distribute
Info<< " Redistributing background mesh cells" << endl;
fvMeshDistribute distributor(mesh_, mergeDist_);
fvMeshDistribute distributor(mesh_);
autoPtr<mapDistributePolyMesh> mapDist = distributor.distribute(newDecomp);

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2012-2016 OpenFOAM Foundation
Copyright (C) 2016-2020 OpenCFD Ltd.
Copyright (C) 2016-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -532,15 +532,15 @@ int main(int argc, char *argv[])
).decomposer().decompose(mesh, mesh.cellCentres());
// Global matching tolerance
const scalar tolDim = getMergeDistance
(
args,
runTime,
mesh.bounds()
);
//const scalar tolDim = getMergeDistance
//(
// args,
// runTime,
// mesh.bounds()
//);
// Mesh distribution engine
fvMeshDistribute distributor(mesh, tolDim);
fvMeshDistribute distributor(mesh);
Info<< "Wanted distribution:"
<< distributor.countCells(decomp) << nl << endl;

View File

@ -70,7 +70,7 @@ class mapDistributePolyMesh;
class fvMeshDistribute
{
// Private data
// Private Data
//- Underlying fvMesh
fvMesh& mesh_;
@ -360,7 +360,7 @@ public:
// Constructors
//- Construct from mesh
fvMeshDistribute(fvMesh& mesh);
explicit fvMeshDistribute(fvMesh& mesh);
// Member Functions