From 00c77c35dc08d4eb7bc973e2fc24773837789ebb Mon Sep 17 00:00:00 2001 From: graham Date: Fri, 26 Nov 2010 12:31:05 +0000 Subject: [PATCH] ENH: using fieldDictionary.H to do binary IO in fieldToCell.C. --- .../sets/cellSources/fieldToCell}/fieldDictionary.H | 0 src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C | 5 +++-- 2 files changed, 3 insertions(+), 2 deletions(-) rename {applications/utilities/miscellaneous/foamFormatConvert => src/meshTools/sets/cellSources/fieldToCell}/fieldDictionary.H (100%) diff --git a/applications/utilities/miscellaneous/foamFormatConvert/fieldDictionary.H b/src/meshTools/sets/cellSources/fieldToCell/fieldDictionary.H similarity index 100% rename from applications/utilities/miscellaneous/foamFormatConvert/fieldDictionary.H rename to src/meshTools/sets/cellSources/fieldToCell/fieldDictionary.H diff --git a/src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C b/src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C index dd5a540f69..e88c08db31 100644 --- a/src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C +++ b/src/meshTools/sets/cellSources/fieldToCell/fieldToCell.C @@ -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());