mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: globalIndexAndTransform : make functions static for ease of use
This commit is contained in:
@ -160,14 +160,14 @@ public:
|
||||
) const;
|
||||
|
||||
//- Encode index and bare index as components on own processor
|
||||
inline labelPair encode
|
||||
inline static labelPair encode
|
||||
(
|
||||
const label index,
|
||||
const label transformIndex
|
||||
);
|
||||
|
||||
//- Encode index and bare index as components on given processor
|
||||
inline labelPair encode
|
||||
inline static labelPair encode
|
||||
(
|
||||
const label procI,
|
||||
const label index,
|
||||
|
||||
@ -144,8 +144,8 @@ Foam::label Foam::globalIndexAndTransform::addToTransformIndex
|
||||
}
|
||||
|
||||
|
||||
// Re-ecode permutation
|
||||
// ~~~~~~~~~~~~~~~~~~~~
|
||||
// Re-encode permutation
|
||||
// ~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
return
|
||||
(permutation[2]+1)*9
|
||||
@ -218,7 +218,7 @@ Foam::labelPair Foam::globalIndexAndTransform::encode
|
||||
}
|
||||
|
||||
|
||||
Foam::label Foam::globalIndexAndTransform::index
|
||||
Foam::label Foam::globalIndexAndTransform::index
|
||||
(
|
||||
const labelPair& globalIAndTransform
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user