Skip to content
Snippets Groups Projects
Commit 5ddca2ee authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: macros for non-templated chemistry readers

parent 5e4c5c94
No related branches found
No related tags found
No related merge requests found
...@@ -122,28 +122,24 @@ public: ...@@ -122,28 +122,24 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#define makeChemistryReader(Thermo) \ #define makeChemistryReader(Thermo) \
\ defineTemplateTypeNameAndDebug(chemistryReader<Thermo>, 0); \
defineTemplateTypeNameAndDebug \ defineTemplateRunTimeSelectionTable(chemistryReader<Thermo>, dictionary);
( \
chemistryReader<Thermo>, \
0 \
); \
\
defineTemplateRunTimeSelectionTable(chemistryReader<Thermo>, dictionary);
#define makeChemistryReaderType(SS, Thermo) \ #define makeChemistryReaderType(SS, Thermo) \
\
defineNamedTemplateTypeNameAndDebug(SS<Thermo>, 0); \ defineNamedTemplateTypeNameAndDebug(SS<Thermo>, 0); \
\
chemistryReader<Thermo>::adddictionaryConstructorToTable<SS<Thermo> > \ chemistryReader<Thermo>::adddictionaryConstructorToTable<SS<Thermo> > \
add##SS##Thermo##ConstructorToTable_; add##SS##Thermo##ConstructorToTable_;
#define addChemistryReaderType(SS, Thermo) \ #define addChemistryReaderType(SS, Thermo) \
\
defineNamedTemplateTypeNameAndDebug(SS, 0); \ defineNamedTemplateTypeNameAndDebug(SS, 0); \
\ chemistryReader<Thermo>::adddictionaryConstructorToTable<SS> \
add##SS##Thermo##ConstructorToTable_;
#define addNonTemplatedChemistryReaderType(SS, Thermo) \
defineTypeNameAndDebug(SS, 0); \
chemistryReader<Thermo>::adddictionaryConstructorToTable<SS> \ chemistryReader<Thermo>::adddictionaryConstructorToTable<SS> \
add##SS##Thermo##ConstructorToTable_; add##SS##Thermo##ConstructorToTable_;
......
...@@ -45,8 +45,9 @@ License ...@@ -45,8 +45,9 @@ License
namespace Foam namespace Foam
{ {
addChemistryReaderType(chemkinReader, gasThermoPhysics); addNonTemplatedChemistryReaderType(chemkinReader, gasThermoPhysics);
}; }
/* * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * */ /* * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment