Skip to content
Snippets Groups Projects
Commit dae4d905 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: use forAll macro in newly added code

parent 0e9851b4
No related branches found
No related tags found
No related merge requests found
......@@ -269,9 +269,9 @@ void Foam::globalIndexAndTransform::determineTransformPermutations()
// Invert the ternary index encoding using repeated division by
// three
for (label b = 0; b < transforms_.size(); b++)
forAll(transforms_, b)
{
label w = (transformIndex % 3) - 1;
const label w = (transformIndex % 3) - 1;
transformIndex /= 3;
......
......@@ -49,7 +49,7 @@ Foam::label Foam::globalIndexAndTransform::encodeTransformIndex
label w = 1;
for (label b = 0; b < transforms_.size(); b++)
forAll(transforms_, b)
{
if (mag(permutationIndices[b]) > 1)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment