BUG: sampleDict: missing type

This commit is contained in:
mattijs
2012-12-05 15:21:00 +00:00
parent db50024d44
commit 9ccd5809b8
21 changed files with 194 additions and 294 deletions

View File

@ -680,35 +680,17 @@ int main(int argc, char *argv[])
);
argList::noParallel();
argList::addOption
(
"dict",
"word",
"specify alternative dictionary for the feature extraction information"
);
# include "addDictOption.H"
# include "setRootCase.H"
# include "createTime.H"
word dictName
(
args.optionLookupOrDefault<word>("dict", "surfaceFeatureExtractDict")
);
const word dictName("surfaceFeatureExtractDict");
# include "setSystemRunTimeDictionaryIO.H"
Info<< "Reading " << dictName << nl << endl;
IOdictionary dict
(
IOobject
(
dictName,
runTime.system(),
runTime,
IOobject::MUST_READ,
IOobject::NO_WRITE,
false
)
);
const IOdictionary dict(dictIO);
forAllConstIter(dictionary, dict, iter)
{