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

This commit is contained in:
Mark Olesen
2010-04-23 18:35:55 +02:00
parent 03338b9ea9
commit 9c32ce1016
56 changed files with 1784 additions and 1789 deletions

View File

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

View File

@ -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;
}

View File

@ -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;
}

View File

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

View File

@ -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];
}

View File

@ -22,7 +22,7 @@ if (nVar >= 0)
if (v.size())
{
for (label n = 0; n < v.size(); n++)
forAll(v, n)
{
if (component == 0)
{

View File

@ -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];
}

View File

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

View File

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