chemistryReduction: Restore default selection of no reduction if settings are absent
This commit is contained in:
@ -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
|
||||
(
|
||||
|
||||
@ -142,6 +142,12 @@ public:
|
||||
|
||||
// Constructors
|
||||
|
||||
//- Construct from components
|
||||
chemistryReductionMethod
|
||||
(
|
||||
chemistryModel<ThermoType>& chemistry
|
||||
);
|
||||
|
||||
//- Construct from components
|
||||
chemistryReductionMethod
|
||||
(
|
||||
|
||||
@ -34,7 +34,7 @@ Foam::chemistryReductionMethods::none<ThermoType>::none
|
||||
chemistryModel<ThermoType>& chemistry
|
||||
)
|
||||
:
|
||||
chemistryReductionMethod<ThermoType>(dict, chemistry)
|
||||
chemistryReductionMethod<ThermoType>(chemistry)
|
||||
{}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user