30 template<
class ThermoType>
40 word chemistryReaderTypeName(
"chemkinReader");
43 thermoDict.
readIfPresent(
"chemistryReader", chemistryReaderTypeName);
45 Info<<
"Selecting chemistryReader " << chemistryReaderTypeName <<
endl;
47 typename dictionaryConstructorTable::iterator cstrIter =
48 dictionaryConstructorTablePtr_->find(chemistryReaderTypeName);
50 if (cstrIter == dictionaryConstructorTablePtr_->end())
53 <<
"Unknown chemistryReader type " 54 << chemistryReaderTypeName <<
nl <<
nl 55 <<
"Valid chemistryReader types are:" <<
nl 56 << dictionaryConstructorTablePtr_->sortedToc()
62 cstrIter()(thermoDict, species)
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.
A class for handling words, derived from string.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
static autoPtr< chemistryReader > New(const dictionary &thermoDict, speciesTable &species)
Select constructed from dictionary.
A wordList with hashed indices for faster lookup by name.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...