mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use forAll macro in more places, avoid LF-CR endings
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
@ -99,7 +99,7 @@ int USERD_set_filenames
|
||||
label nVar = 0;
|
||||
wordList scalars = objects.names(scalarName);
|
||||
|
||||
for (label n=0; n<fieldNames.size(); n++)
|
||||
forAll(fieldNames, n)
|
||||
{
|
||||
bool isitScalar = false;
|
||||
forAll(scalars,i)
|
||||
@ -115,7 +115,7 @@ int USERD_set_filenames
|
||||
|
||||
wordList vectors = objects.names(vectorName);
|
||||
|
||||
for (label n=0; n<fieldNames.size(); n++)
|
||||
forAll(fieldNames, n)
|
||||
{
|
||||
bool isitVector = false;
|
||||
forAll(vectors,i)
|
||||
@ -131,7 +131,7 @@ int USERD_set_filenames
|
||||
|
||||
wordList tensors = objects.names(tensorName);
|
||||
|
||||
for (label n=0; n<fieldNames.size(); n++)
|
||||
forAll(fieldNames, n)
|
||||
{
|
||||
bool isitTensor = false;
|
||||
forAll(tensors,i)
|
||||
|
||||
@ -21,7 +21,7 @@ if (nVar >= 0)
|
||||
|
||||
if (s.size())
|
||||
{
|
||||
for (label n = 0; n < s.size(); n++)
|
||||
forAll(s, n)
|
||||
{
|
||||
var_array[n+1] = s[n];
|
||||
}
|
||||
|
||||
@ -22,7 +22,7 @@ if (nVar >= 0)
|
||||
|
||||
if (v.size())
|
||||
{
|
||||
for (label n = 0; n < v.size(); n++)
|
||||
forAll(v, n)
|
||||
{
|
||||
if (component == 0)
|
||||
{
|
||||
|
||||
@ -39,7 +39,7 @@ const polyBoundaryMesh& bMesh = meshPtr->boundaryMesh();
|
||||
if (which_type == Z_TRI03)
|
||||
{
|
||||
label counter = 1;
|
||||
for (label facei=0; facei<sfb.size(); facei++)
|
||||
forAll(sfb, facei)
|
||||
{
|
||||
label nPoints = bMesh[patchi][facei].size();
|
||||
if (nPoints == 3)
|
||||
@ -52,7 +52,7 @@ if (which_type == Z_TRI03)
|
||||
if (which_type == Z_QUA04)
|
||||
{
|
||||
label counter = 1;
|
||||
for (label facei=0; facei<sfb.size(); facei++)
|
||||
forAll(sfb, facei)
|
||||
{
|
||||
label nPoints = bMesh[patchi][facei].size();
|
||||
if (nPoints == 4)
|
||||
@ -65,10 +65,10 @@ if (which_type == Z_QUA04)
|
||||
if (which_type == Z_NSIDED)
|
||||
{
|
||||
label counter = 1;
|
||||
for (label facei=0; facei<sfb.size(); facei++)
|
||||
forAll(sfb, facei)
|
||||
{
|
||||
label nPoints = bMesh[patchi][facei].size();
|
||||
if ((nPoints != 3) && (nPoints != 4))
|
||||
if (nPoints != 3 && nPoints != 4)
|
||||
{
|
||||
var_array[counter++] = sfb[facei];
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@ const polyBoundaryMesh& bMesh = meshPtr->boundaryMesh();
|
||||
if (which_type == Z_TRI03)
|
||||
{
|
||||
label counter = 1;
|
||||
for (label n=0; n<tf.size(); n++)
|
||||
forAll(tf, n)
|
||||
{
|
||||
label nPoints = bMesh[patchi][n].size();
|
||||
if (nPoints == 3)
|
||||
@ -52,7 +52,7 @@ if (which_type == Z_TRI03)
|
||||
if (which_type == Z_QUA04)
|
||||
{
|
||||
label counter = 1;
|
||||
for (label n=0; n<tf.size(); n++)
|
||||
forAll(tf, n)
|
||||
{
|
||||
label nPoints = bMesh[patchi][n].size();
|
||||
if (nPoints == 4)
|
||||
@ -65,7 +65,7 @@ if (which_type == Z_QUA04)
|
||||
if (which_type == Z_NSIDED)
|
||||
{
|
||||
label counter = 1;
|
||||
for (label n=0; n<tf.size(); n++)
|
||||
forAll(tf, n)
|
||||
{
|
||||
label nPoints = bMesh[patchi][n].size();
|
||||
if ((nPoints != 3) && (nPoints != 4))
|
||||
|
||||
@ -39,7 +39,7 @@ const polyBoundaryMesh& bMesh = meshPtr->boundaryMesh();
|
||||
if (which_type == Z_TRI03)
|
||||
{
|
||||
label counter = 1;
|
||||
for (label facei=0; facei<sfb.size(); facei++)
|
||||
forAll(sfb, facei)
|
||||
{
|
||||
label nPoints = bMesh[patchi][facei].size();
|
||||
if (nPoints == 3)
|
||||
@ -52,7 +52,7 @@ if (which_type == Z_TRI03)
|
||||
if (which_type == Z_QUA04)
|
||||
{
|
||||
label counter = 1;
|
||||
for (label facei=0; facei<sfb.size(); facei++)
|
||||
forAll(sfb, facei)
|
||||
{
|
||||
label nPoints = bMesh[patchi][facei].size();
|
||||
if (nPoints == 4)
|
||||
@ -65,7 +65,7 @@ if (which_type == Z_QUA04)
|
||||
if (which_type == Z_NSIDED)
|
||||
{
|
||||
label counter = 1;
|
||||
for (label facei=0; facei<sfb.size(); facei++)
|
||||
forAll(sfb, facei)
|
||||
{
|
||||
label nPoints = bMesh[patchi][facei].size();
|
||||
if ((nPoints != 3) && (nPoints != 4))
|
||||
|
||||
@ -57,7 +57,7 @@ void Foam::tabulatedWallFunctions::SpaldingsLaw::invertFunction()
|
||||
scalar uPlus = 1;
|
||||
|
||||
// Populate the table
|
||||
for (label i=0; i<invertedTable_.size(); i++)
|
||||
forAll(invertedTable_, i)
|
||||
{
|
||||
if (invertedTable_.log10())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user