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:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user