Replaced inconsistently named local typedefs with VolField, SurfaceField and PointField

making the code more consistent and readable.
This commit is contained in:
Henry Weller
2022-12-02 10:54:21 +00:00
parent 73c5624acf
commit 5f7993dab4
26 changed files with 225 additions and 243 deletions

View File

@ -36,10 +36,11 @@ void Foam::readFields
const bool readOldTime
)
{
typedef GeometricField<Type, PatchField, GeoMesh> GeoField;
// Search list of objects for fields of type GeomField
IOobjectList fieldObjects(objects.lookupClass(GeoField::typeName));
// Search list of objects for fields
IOobjectList fieldObjects(objects.lookupClass
(
GeometricField<Type, PatchField, GeoMesh>::typeName)
);
// Remove the cellProc field
IOobjectList::iterator cellProcIter = fieldObjects.find("cellProc");
@ -59,7 +60,16 @@ void Foam::readFields
{
const IOobject& io = *fieldObjects[masterNames[i]];
fields.set(i, new GeoField(io, mesh, readOldTime));
fields.set
(
i,
new GeometricField<Type, PatchField, GeoMesh>
(
io,
mesh,
readOldTime
)
);
}
}