Commit 5de788ea authored by mattijs's avatar mattijs
Browse files

ENH: globalIndexAndTransform : make functions static for ease of use

parent eece3033
......@@ -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
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment