simplification of file handling

This commit is contained in:
mattijs 2008-08-06 16:13:02 +01:00
parent 95bb8d6577
commit 44d5e5cdbb

View File

@ -206,10 +206,7 @@ void Foam::fieldToCell::applyToSet
} }
else if (fieldObject.headerClassName() == "volScalarField") else if (fieldObject.headerClassName() == "volScalarField")
{ {
IFstream str IFstream str(fieldObject.filePath());
(
mesh().time().path()/mesh().time().timeName()/fieldName_
);
// Read dictionary // Read dictionary
dictionary fieldDict(str); dictionary fieldDict(str);
@ -220,10 +217,7 @@ void Foam::fieldToCell::applyToSet
} }
else if (fieldObject.headerClassName() == "volVectorField") else if (fieldObject.headerClassName() == "volVectorField")
{ {
IFstream str IFstream str(fieldObject.filePath());
(
mesh().time().path()/mesh().time().timeName()/fieldName_
);
// Read dictionary // Read dictionary
dictionary fieldDict(str); dictionary fieldDict(str);