Commit 9c32ce10 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: use forAll macro in more places, avoid LF-CR endings

parent 03338b9e
......@@ -14,7 +14,7 @@ tmp<fv::convectionScheme<scalar> > mvConvection
label inertIndex = -1;
volScalarField Yt = 0.0*Y[0];
for (label i=0; i<Y.size(); i++)
forAll(Y, i)
{
if (Y[i].name() != inertSpecie)
{
......
......@@ -43,7 +43,7 @@ volScalarField Sevap
dimensionedScalar("zero", dimensionSet(1, -3, -1, 0, 0), 0.0)
);
for (label i=0; i<Y.size(); i++)
forAll(Y, i)
{
if (dieselSpray.isLiquidFuel()[i])
{
......
......@@ -13,7 +13,7 @@ tmp<fv::convectionScheme<scalar> > mvConvection
label inertIndex = -1;
volScalarField Yt = 0.0*Y[0];
for (label i=0; i<Y.size(); i++)
forAll(Y, i)
{
if (Y[i].name() != inertSpecie)
{
......
......@@ -13,7 +13,7 @@ tmp<fv::convectionScheme<scalar> > mvConvection
label inertIndex = -1;
volScalarField Yt = 0.0*Y[0];
for (label i=0; i<Y.size(); i++)
forAll(Y, i)
{
if (Y[i].name() != inertSpecie)
{
......
......@@ -27,7 +27,7 @@
zeroGradientFvPatchScalarField::typeName
);
for (label i=0; i<p.boundaryField().size(); i++)
forAll(p.boundaryField(), i)
{
if (p.boundaryField()[i].fixesValue())
{
......
......@@ -14,7 +14,7 @@ tmp<fv::convectionScheme<scalar> > mvConvection
label inertIndex = -1;
volScalarField Yt = 0.0*Y[0];
for (label i=0; i<Y.size(); i++)
forAll(Y, i)
{
if (Y[i].name() != inertSpecie)
{
......
......@@ -36,7 +36,7 @@
calculatedFvPatchScalarField::typeName
);
for (label i=0; i<Ua.boundaryField().size(); i++)
forAll(Ua.boundaryField(), i)
{
if (isA<fixedValueFvPatchVectorField>(Ua.boundaryField()[i]))
{
......
......@@ -36,7 +36,7 @@
calculatedFvPatchScalarField::typeName
);
for (label i=0; i<Ub.boundaryField().size(); i++)
forAll(Ub.boundaryField(), i)
{
if (isA<fixedValueFvPatchVectorField>(Ub.boundaryField()[i]))
{
......
......@@ -135,7 +135,7 @@
zeroGradientFvPatchScalarField::typeName
);
for (label i=0; i<p.boundaryField().size(); i++)
forAll(p.boundaryField(), i)
{
if (p.boundaryField()[i].fixesValue())
{
......
......@@ -98,7 +98,7 @@
zeroGradientFvPatchScalarField::typeName
);
for (label i=0; i<p.boundaryField().size(); i++)
forAll(p.boundaryField(), i)
{
if (p.boundaryField()[i].fixesValue())
{
......
......@@ -7,7 +7,7 @@
zeroGradientFvPatchScalarField::typeName
);
for (label i=0; i<p.boundaryField().size(); i++)
forAll(p.boundaryField(), i)
{
if (p.boundaryField()[i].fixesValue())
{
......
......@@ -7,7 +7,7 @@
zeroGradientFvPatchScalarField::typeName
);
for (label i=0; i<p.boundaryField().size(); i++)
forAll(p.boundaryField(), i)
{
if (p.boundaryField()[i].fixesValue())
{
......
......@@ -17,7 +17,7 @@ phi =
surfaceScalarField phiU("phiU", phi);
phi -= ghf*fvc::snGrad(rho)*rUAf*mesh.magSf();
for(int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
{
fvScalarMatrix pmhEqn
(
......
......@@ -106,7 +106,7 @@ Foam::phaseModel::phaseModel
calculatedFvPatchScalarField::typeName
);
for (label i=0; i<U_.boundaryField().size(); i++)
forAll(U_.boundaryField(), i)
{
if (isA<fixedValueFvPatchVectorField>(U_.boundaryField()[i]))
{
......
......@@ -341,9 +341,9 @@ int main(int argc, char *argv[])
{
wordList fieldNames = objects.names(volFieldTypes[i]);
for (label j=0; j<fieldNames.size(); j++)
forAll(fieldNames, j)
{
word fieldName = fieldNames[j];
const word& fieldName = fieldNames[j];
# include "checkData.H"
......
......@@ -6,10 +6,10 @@ for (label i=0; i < nTypes; i++)
{
gmvFile << "variable" << nl;
}
for (label j=0; j < fieldNames.size(); j++)
{
word fieldName = fieldNames[j];
forAll(fieldNames, j)
{
const word& fieldName = fieldNames[j];
IOobject fieldObject
(
......
......@@ -20,7 +20,7 @@ for (label indx=0;indx<nPoints;indx++)
}
gmvFile << nl;
gmvFile << "cells " << cells.size() << nl;
for (label indx=0;indx<cells.size();indx++)
forAll(cells, indx)
{
label nNodes = cells[indx].size();
if (nNodes == 8)
......
......@@ -95,7 +95,7 @@ int USERD_get_gold_variable_info
);
}
for (label n=0; n<lagrangianVectorNames.size(); n++)
forAll(lagrangianVectorNames, n)
{
var_type[offset + Ns + n] = Z_VECTOR;
var_classify[offset + Ns + n] = Z_PER_ELEM;
......
......@@ -144,7 +144,7 @@ int USERD_get_part_element_ids_by_type
}
else if (part_number == nPatches+2)
{
for (label n=0; n<sprayPtr->size(); n++)
forAll(*sprayPtr, n)
{
elemid_array[n] = n + 1;
}
......
......@@ -234,7 +234,7 @@ int USERD_get_part_elements_by_type
}
else if (part_number == nPatches+2)
{
for (label n=0; n<sprayPtr->size(); n++)
forAll(*sprayPtr, n)
{
conn_array[n][0] = n + 1;
}
......
Markdown is supported
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