mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: randomDecomp - resolved compiler warnings
This commit is contained in:
@ -51,7 +51,7 @@ namespace Foam
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::labelList Foam::randomDecomp::decompose(const label nCells) const
|
Foam::labelList Foam::randomDecomp::randomMap(const label nCells) const
|
||||||
{
|
{
|
||||||
Random rndGen(0);
|
Random rndGen(0);
|
||||||
|
|
||||||
@ -93,7 +93,7 @@ Foam::labelList Foam::randomDecomp::decompose
|
|||||||
const scalarField&
|
const scalarField&
|
||||||
) const
|
) 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 scalarField&
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
return decompose(globalCellCells.size()); // or cc.size()
|
return randomMap(globalCellCells.size()); // or cc.size()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -51,7 +51,7 @@ class randomDecomp
|
|||||||
// Private Member Functions
|
// Private Member Functions
|
||||||
|
|
||||||
//- Random distribution on the 0-nCells interval
|
//- Random distribution on the 0-nCells interval
|
||||||
labelList decompose(const label nCells) const;
|
labelList randomMap(const label nCells) const;
|
||||||
|
|
||||||
//- No copy construct
|
//- No copy construct
|
||||||
void operator=(const randomDecomp&) = delete;
|
void operator=(const randomDecomp&) = delete;
|
||||||
|
|||||||
Reference in New Issue
Block a user