41 IFstream engineDictFile(
"."/constantName/dictName);
50 Info<<
"Selecting engine type " << engineType <<
endl;
52 dictionaryConstructorTable::iterator cstrIter =
53 dictionaryConstructorTablePtr_->find(engineType);
55 if (cstrIter == dictionaryConstructorTablePtr_->end())
58 <<
"Unknown engine type " 59 << engineType <<
nl <<
nl 60 <<
"Valid engine types are :" <<
nl 61 << dictionaryConstructorTablePtr_->sortedToc()
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
static autoPtr< engineTime > New(const word &name, const fileName &rootPath, const fileName &caseName, const fileName &systemName="system", const fileName &constantName="constant", const fileName &dictName="engineGeometry")
A class for handling words, derived from string.
const word dictName("particleTrackDict")
word name(const complex &)
Return a string representation of a complex.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...