chemistryReduction: Restore default selection of no reduction if settings are absent

This commit is contained in:
Will Bainbridge
2021-12-17 09:17:47 +00:00
parent cc3b257ce3
commit 083b51e30d
3 changed files with 28 additions and 1 deletions

View File

@ -28,6 +28,27 @@ License
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class ThermoType>
Foam::chemistryReductionMethod<ThermoType>::chemistryReductionMethod
(
Foam::chemistryModel<ThermoType>& chemistry
)
:
coeffsDict_(),
chemistry_(chemistry),
nSpecie_(chemistry.nSpecie()),
nActiveSpecies_(chemistry.nSpecie()),
reactionsDisabled_(chemistry.nReaction(), false),
activeSpecies_(chemistry.nSpecie(), true),
log_(false),
tolerance_(NaN),
clockTime_(clockTime()),
sumnActiveSpecies_(0),
sumn_(0),
reduceMechCpuTime_(0)
{}
template<class ThermoType>
Foam::chemistryReductionMethod<ThermoType>::chemistryReductionMethod
(

View File

@ -142,6 +142,12 @@ public:
// Constructors
//- Construct from components
chemistryReductionMethod
(
chemistryModel<ThermoType>& chemistry
);
//- Construct from components
chemistryReductionMethod
(

View File

@ -34,7 +34,7 @@ Foam::chemistryReductionMethods::none<ThermoType>::none
chemistryModel<ThermoType>& chemistry
)
:
chemistryReductionMethod<ThermoType>(dict, chemistry)
chemistryReductionMethod<ThermoType>(chemistry)
{}