From ed10b19a2cd2c01c62d8949a2863e5fd5b12e42b Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Fri, 14 Jun 2019 17:01:30 +0100 Subject: [PATCH] COMP: randomDecomp - resolved compiler warnings --- .../decompositionMethods/randomDecomp/randomDecomp.C | 6 +++--- .../decompositionMethods/randomDecomp/randomDecomp.H | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parallel/decompose/decompositionMethods/randomDecomp/randomDecomp.C b/src/parallel/decompose/decompositionMethods/randomDecomp/randomDecomp.C index aa55e77e92..e1b583cdd8 100644 --- a/src/parallel/decompose/decompositionMethods/randomDecomp/randomDecomp.C +++ b/src/parallel/decompose/decompositionMethods/randomDecomp/randomDecomp.C @@ -51,7 +51,7 @@ namespace Foam // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -Foam::labelList Foam::randomDecomp::decompose(const label nCells) const +Foam::labelList Foam::randomDecomp::randomMap(const label nCells) const { Random rndGen(0); @@ -93,7 +93,7 @@ Foam::labelList Foam::randomDecomp::decompose const scalarField& ) const { - return decompose(mesh.nCells()); // or cc.size() + return randomMap(mesh.nCells()); // or cc.size() } @@ -104,7 +104,7 @@ Foam::labelList Foam::randomDecomp::decompose const scalarField& ) const { - return decompose(globalCellCells.size()); // or cc.size() + return randomMap(globalCellCells.size()); // or cc.size() } diff --git a/src/parallel/decompose/decompositionMethods/randomDecomp/randomDecomp.H b/src/parallel/decompose/decompositionMethods/randomDecomp/randomDecomp.H index 69da66ba33..5eea76c9f0 100644 --- a/src/parallel/decompose/decompositionMethods/randomDecomp/randomDecomp.H +++ b/src/parallel/decompose/decompositionMethods/randomDecomp/randomDecomp.H @@ -51,7 +51,7 @@ class randomDecomp // Private Member Functions //- Random distribution on the 0-nCells interval - labelList decompose(const label nCells) const; + labelList randomMap(const label nCells) const; //- No copy construct void operator=(const randomDecomp&) = delete;