mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Change field loop index from "fieldI" to "fieldi"
This commit is contained in:
@ -88,7 +88,7 @@ void Foam::patchProbes::sampleAndWrite
|
||||
const fieldGroup<Type>& fields
|
||||
)
|
||||
{
|
||||
forAll(fields, fieldI)
|
||||
forAll(fields, fieldi)
|
||||
{
|
||||
if (loadFromFiles_)
|
||||
{
|
||||
@ -98,7 +98,7 @@ void Foam::patchProbes::sampleAndWrite
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
fields[fieldI],
|
||||
fields[fieldi],
|
||||
mesh_.time().timeName(),
|
||||
mesh_,
|
||||
IOobject::MUST_READ,
|
||||
@ -111,7 +111,7 @@ void Foam::patchProbes::sampleAndWrite
|
||||
}
|
||||
else
|
||||
{
|
||||
objectRegistry::const_iterator iter = mesh_.find(fields[fieldI]);
|
||||
objectRegistry::const_iterator iter = mesh_.find(fields[fieldi]);
|
||||
|
||||
if
|
||||
(
|
||||
@ -125,7 +125,7 @@ void Foam::patchProbes::sampleAndWrite
|
||||
mesh_.lookupObject
|
||||
<GeometricField<Type, fvPatchField, volMesh>>
|
||||
(
|
||||
fields[fieldI]
|
||||
fields[fieldi]
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -140,7 +140,7 @@ void Foam::patchProbes::sampleAndWriteSurfaceFields
|
||||
const fieldGroup<Type>& fields
|
||||
)
|
||||
{
|
||||
forAll(fields, fieldI)
|
||||
forAll(fields, fieldi)
|
||||
{
|
||||
if (loadFromFiles_)
|
||||
{
|
||||
@ -150,7 +150,7 @@ void Foam::patchProbes::sampleAndWriteSurfaceFields
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
fields[fieldI],
|
||||
fields[fieldi],
|
||||
mesh_.time().timeName(),
|
||||
mesh_,
|
||||
IOobject::MUST_READ,
|
||||
@ -163,7 +163,7 @@ void Foam::patchProbes::sampleAndWriteSurfaceFields
|
||||
}
|
||||
else
|
||||
{
|
||||
objectRegistry::const_iterator iter = mesh_.find(fields[fieldI]);
|
||||
objectRegistry::const_iterator iter = mesh_.find(fields[fieldi]);
|
||||
|
||||
if
|
||||
(
|
||||
@ -177,7 +177,7 @@ void Foam::patchProbes::sampleAndWriteSurfaceFields
|
||||
mesh_.lookupObject
|
||||
<GeometricField<Type, fvsPatchField, surfaceMesh>>
|
||||
(
|
||||
fields[fieldI]
|
||||
fields[fieldi]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -121,9 +121,9 @@ Foam::label Foam::probes::classifyFields()
|
||||
|
||||
labelList indices = findStrings(fieldSelection_, allFields);
|
||||
|
||||
forAll(indices, fieldI)
|
||||
forAll(indices, fieldi)
|
||||
{
|
||||
const word& fieldName = allFields[indices[fieldI]];
|
||||
const word& fieldName = allFields[indices[fieldi]];
|
||||
|
||||
nFields += appendFieldGroup
|
||||
(
|
||||
@ -138,9 +138,9 @@ Foam::label Foam::probes::classifyFields()
|
||||
wordList allFields = mesh_.sortedNames();
|
||||
labelList indices = findStrings(fieldSelection_, allFields);
|
||||
|
||||
forAll(indices, fieldI)
|
||||
forAll(indices, fieldi)
|
||||
{
|
||||
const word& fieldName = allFields[indices[fieldI]];
|
||||
const word& fieldName = allFields[indices[fieldi]];
|
||||
|
||||
nFields += appendFieldGroup
|
||||
(
|
||||
|
||||
@ -114,7 +114,7 @@ void Foam::probes::sampleAndWrite
|
||||
template<class Type>
|
||||
void Foam::probes::sampleAndWrite(const fieldGroup<Type>& fields)
|
||||
{
|
||||
forAll(fields, fieldI)
|
||||
forAll(fields, fieldi)
|
||||
{
|
||||
if (loadFromFiles_)
|
||||
{
|
||||
@ -124,7 +124,7 @@ void Foam::probes::sampleAndWrite(const fieldGroup<Type>& fields)
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
fields[fieldI],
|
||||
fields[fieldi],
|
||||
mesh_.time().timeName(),
|
||||
mesh_,
|
||||
IOobject::MUST_READ,
|
||||
@ -137,7 +137,7 @@ void Foam::probes::sampleAndWrite(const fieldGroup<Type>& fields)
|
||||
}
|
||||
else
|
||||
{
|
||||
objectRegistry::const_iterator iter = mesh_.find(fields[fieldI]);
|
||||
objectRegistry::const_iterator iter = mesh_.find(fields[fieldi]);
|
||||
|
||||
if
|
||||
(
|
||||
@ -151,7 +151,7 @@ void Foam::probes::sampleAndWrite(const fieldGroup<Type>& fields)
|
||||
mesh_.lookupObject
|
||||
<GeometricField<Type, fvPatchField, volMesh>>
|
||||
(
|
||||
fields[fieldI]
|
||||
fields[fieldi]
|
||||
)
|
||||
);
|
||||
}
|
||||
@ -163,7 +163,7 @@ void Foam::probes::sampleAndWrite(const fieldGroup<Type>& fields)
|
||||
template<class Type>
|
||||
void Foam::probes::sampleAndWriteSurfaceFields(const fieldGroup<Type>& fields)
|
||||
{
|
||||
forAll(fields, fieldI)
|
||||
forAll(fields, fieldi)
|
||||
{
|
||||
if (loadFromFiles_)
|
||||
{
|
||||
@ -173,7 +173,7 @@ void Foam::probes::sampleAndWriteSurfaceFields(const fieldGroup<Type>& fields)
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
fields[fieldI],
|
||||
fields[fieldi],
|
||||
mesh_.time().timeName(),
|
||||
mesh_,
|
||||
IOobject::MUST_READ,
|
||||
@ -186,7 +186,7 @@ void Foam::probes::sampleAndWriteSurfaceFields(const fieldGroup<Type>& fields)
|
||||
}
|
||||
else
|
||||
{
|
||||
objectRegistry::const_iterator iter = mesh_.find(fields[fieldI]);
|
||||
objectRegistry::const_iterator iter = mesh_.find(fields[fieldi]);
|
||||
|
||||
if
|
||||
(
|
||||
@ -200,7 +200,7 @@ void Foam::probes::sampleAndWriteSurfaceFields(const fieldGroup<Type>& fields)
|
||||
mesh_.lookupObject
|
||||
<GeometricField<Type, fvsPatchField, surfaceMesh>>
|
||||
(
|
||||
fields[fieldI]
|
||||
fields[fieldi]
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -93,9 +93,9 @@ Foam::label Foam::sampledSets::classifyFields()
|
||||
|
||||
if (indices.size())
|
||||
{
|
||||
forAll(indices, fieldI)
|
||||
forAll(indices, fieldi)
|
||||
{
|
||||
const word& fieldName = allFields[indices[fieldI]];
|
||||
const word& fieldName = allFields[indices[fieldi]];
|
||||
|
||||
nFields += appendFieldGroup
|
||||
(
|
||||
@ -124,9 +124,9 @@ Foam::label Foam::sampledSets::classifyFields()
|
||||
|
||||
if (indices.size())
|
||||
{
|
||||
forAll(indices, fieldI)
|
||||
forAll(indices, fieldi)
|
||||
{
|
||||
const word& fieldName = allFields[indices[fieldI]];
|
||||
const word& fieldName = allFields[indices[fieldi]];
|
||||
|
||||
nFields += appendFieldGroup
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user