30 template<
class CompType,
class ThermoType>
35 const word& compTypeName,
36 const word& thermoTypeName
39 word modelName(model.lookup(
"chemistrySolver"));
41 word chemistrySolverType =
42 modelName +
'<' + compTypeName +
',' + thermoTypeName +
'>';
44 Info<<
"Selecting chemistrySolver " << modelName <<
endl;
46 typename dictionaryConstructorTable::iterator cstrIter =
47 dictionaryConstructorTablePtr_->find(chemistrySolverType);
49 if (cstrIter == dictionaryConstructorTablePtr_->end())
51 wordList models = dictionaryConstructorTablePtr_->sortedToc();
54 models[i] = models[i].replace
56 '<' + compTypeName +
',' + thermoTypeName +
'>',
63 "chemistrySolver::New"
65 "const ODEChemistryModel&, "
69 ) <<
"Unknown chemistrySolver type " << modelName
70 <<
nl <<
nl <<
"Valid chemistrySolver types are:" <<
nl
75 (cstrIter()(model, modelName));