mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
simplification of file handling
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user