ENH: using fieldDictionary.H to do binary IO in fieldToCell.C.

This commit is contained in:
graham
2010-11-26 12:31:05 +00:00
parent 3cc1cfe07a
commit 00c77c35dc
2 changed files with 3 additions and 2 deletions

View File

@ -28,6 +28,7 @@ License
#include "cellSet.H"
#include "Time.H"
#include "IFstream.H"
#include "fieldDictionary.H"
#include "addToRunTimeSelectionTable.H"
@ -207,7 +208,7 @@ void Foam::fieldToCell::applyToSet
IFstream str(fieldObject.filePath());
// Read dictionary
dictionary fieldDict(str);
fieldDictionary fieldDict(fieldObject, fieldObject.headerClassName());
scalarField internalVals("internalField", fieldDict, mesh().nCells());
@ -218,7 +219,7 @@ void Foam::fieldToCell::applyToSet
IFstream str(fieldObject.filePath());
// Read dictionary
dictionary fieldDict(str);
fieldDictionary fieldDict(fieldObject, fieldObject.headerClassName());
vectorField internalVals("internalField", fieldDict, mesh().nCells());