COMP: macros for non-templated chemistry readers

This commit is contained in:
Mark Olesen
2010-12-17 16:11:09 +01:00
parent 5e4c5c9469
commit 5ddca2ee01
2 changed files with 11 additions and 14 deletions

View File

@ -122,28 +122,24 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#define makeChemistryReader(Thermo) \
\
defineTemplateTypeNameAndDebug \
( \
chemistryReader<Thermo>, \
0 \
); \
\
defineTemplateRunTimeSelectionTable(chemistryReader<Thermo>, dictionary);
defineTemplateTypeNameAndDebug(chemistryReader<Thermo>, 0); \
defineTemplateRunTimeSelectionTable(chemistryReader<Thermo>, dictionary);
#define makeChemistryReaderType(SS, Thermo) \
\
defineNamedTemplateTypeNameAndDebug(SS<Thermo>, 0); \
\
chemistryReader<Thermo>::adddictionaryConstructorToTable<SS<Thermo> > \
add##SS##Thermo##ConstructorToTable_;
#define addChemistryReaderType(SS, Thermo) \
\
defineNamedTemplateTypeNameAndDebug(SS, 0); \
\
chemistryReader<Thermo>::adddictionaryConstructorToTable<SS> \
add##SS##Thermo##ConstructorToTable_;
#define addNonTemplatedChemistryReaderType(SS, Thermo) \
defineTypeNameAndDebug(SS, 0); \
chemistryReader<Thermo>::adddictionaryConstructorToTable<SS> \
add##SS##Thermo##ConstructorToTable_;

View File

@ -45,8 +45,9 @@ License
namespace Foam
{
addChemistryReaderType(chemkinReader, gasThermoPhysics);
};
addNonTemplatedChemistryReaderType(chemkinReader, gasThermoPhysics);
}
/* * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * */