Commit 44d5e5cd authored by Mattijs Janssens's avatar Mattijs Janssens
Browse files

simplification of file handling

parent 95bb8d65
......@@ -206,10 +206,7 @@ void Foam::fieldToCell::applyToSet
}
else if (fieldObject.headerClassName() == "volScalarField")
{
IFstream str
(
mesh().time().path()/mesh().time().timeName()/fieldName_
);
IFstream str(fieldObject.filePath());
// Read dictionary
dictionary fieldDict(str);
......@@ -220,10 +217,7 @@ void Foam::fieldToCell::applyToSet
}
else if (fieldObject.headerClassName() == "volVectorField")
{
IFstream str
(
mesh().time().path()/mesh().time().timeName()/fieldName_
);
IFstream str(fieldObject.filePath());
// Read dictionary
dictionary fieldDict(str);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment