mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: using fieldDictionary.H to do binary IO in fieldToCell.C.
This commit is contained in:
@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user