TDACChemistryModel: Allow reduction and tabulation methods to be instantiated in the same file
This commit is contained in:
@ -39,18 +39,20 @@ License
|
||||
|
||||
#define makeChemistryReductionMethod(SS, Comp, Thermo) \
|
||||
\
|
||||
typedef chemistryReductionMethods::SS<Comp, Thermo> SS##Comp##Thermo; \
|
||||
typedef chemistryReductionMethods::SS<Comp, Thermo> \
|
||||
chemistryReductionMethod##SS##Comp##Thermo; \
|
||||
\
|
||||
defineTemplateTypeNameAndDebugWithName \
|
||||
( \
|
||||
SS##Comp##Thermo, \
|
||||
chemistryReductionMethod##SS##Comp##Thermo, \
|
||||
(#SS"<" + word(Comp::typeName_()) \
|
||||
+ "," + Thermo::typeName() + ">").c_str(), \
|
||||
0 \
|
||||
); \
|
||||
\
|
||||
chemistryReductionMethod<Comp, Thermo>:: \
|
||||
adddictionaryConstructorToTable<SS##Comp##Thermo> \
|
||||
adddictionaryConstructorToTable \
|
||||
<chemistryReductionMethod##SS##Comp##Thermo> \
|
||||
add##chemistryReductionMethods##SS##Comp##Thermo##ConstructorToTable_;
|
||||
|
||||
|
||||
|
||||
@ -34,18 +34,20 @@ License
|
||||
|
||||
#define makeChemistryTabulationMethod(SS, Comp, Thermo) \
|
||||
\
|
||||
typedef chemistryTabulationMethods::SS<Comp, Thermo> SS##Comp##Thermo; \
|
||||
typedef chemistryTabulationMethods::SS<Comp, Thermo> \
|
||||
chemistryTabulationMethod##SS##Comp##Thermo; \
|
||||
\
|
||||
defineTemplateTypeNameAndDebugWithName \
|
||||
( \
|
||||
SS##Comp##Thermo, \
|
||||
chemistryTabulationMethod##SS##Comp##Thermo, \
|
||||
(#SS"<" + word(Comp::typeName_()) \
|
||||
+ "," + Thermo::typeName() + ">").c_str(), \
|
||||
0 \
|
||||
); \
|
||||
\
|
||||
chemistryTabulationMethod<Comp, Thermo>:: \
|
||||
adddictionaryConstructorToTable<SS##Comp##Thermo> \
|
||||
adddictionaryConstructorToTable \
|
||||
<chemistryTabulationMethod##SS##Comp##Thermo> \
|
||||
add##chemistryTabulationMethods##SS##Comp##Thermo##ConstructorToTable_;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user