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
|
||||
);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user