ENH: globalIndexAndTransform : make functions static for ease of use

This commit is contained in:
mattijs
2011-01-12 17:50:32 +00:00
parent eece30331b
commit 5de788eae0
2 changed files with 5 additions and 5 deletions

View File

@ -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,

View File

@ -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
)