[Kinetics] Removed unnecessary initializations

This commit is contained in:
Ray Speth 2014-10-29 23:32:24 +00:00
parent 3ab37254eb
commit a8659c86cc
4 changed files with 3 additions and 77 deletions

View file

@ -20,7 +20,6 @@ namespace Cantera
{
AqueousKinetics::AqueousKinetics(thermo_t* thermo) :
Kinetics(),
m_nfall(0),
m_nirrev(0),
m_nrev(0),
@ -34,7 +33,6 @@ AqueousKinetics::AqueousKinetics(thermo_t* thermo) :
}
AqueousKinetics::AqueousKinetics(const AqueousKinetics& right) :
Kinetics(),
m_nfall(0),
m_nirrev(0),
m_nrev(0),

View file

@ -13,7 +13,6 @@ using namespace std;
namespace Cantera
{
GasKinetics::GasKinetics(thermo_t* thermo) :
Kinetics(),
m_nfall(0),
m_nirrev(0),
m_nrev(0),
@ -28,23 +27,10 @@ GasKinetics::GasKinetics(thermo_t* thermo) :
if (thermo != 0) {
addPhase(*thermo);
}
m_temp = 0.0;
}
GasKinetics::GasKinetics(const GasKinetics& right) :
Kinetics(),
m_nfall(0),
m_nirrev(0),
m_nrev(0),
m_logp_ref(0.0),
m_logc_ref(0.0),
m_logStandConc(0.0),
m_ROP_ok(false),
m_temp(0.0),
m_pres(0.0),
m_finalized(false)
GasKinetics::GasKinetics(const GasKinetics& right)
{
m_temp = 0.0;
*this = right;
}

View file

@ -19,20 +19,11 @@ namespace Cantera
{
InterfaceKinetics::InterfaceKinetics(thermo_t* thermo) :
Kinetics(),
m_redo_rates(false),
m_nirrev(0),
m_nrev(0),
m_surf(0),
m_integrator(0),
m_beta(0),
m_ctrxn(0),
m_ctrxn_BVform(0),
m_ctrxn_ecdf(0),
m_StandardConc(0),
m_deltaG0(0),
m_deltaG(0),
m_ProdStanConcReac(0),
m_logp0(0.0),
m_logc0(0.0),
m_ROP_ok(false),
@ -43,10 +34,6 @@ InterfaceKinetics::InterfaceKinetics(thermo_t* thermo) :
m_has_electrochem_rxns(false),
m_has_exchange_current_density_formulation(false),
m_phaseExistsCheck(false),
m_phaseExists(0),
m_phaseIsStable(0),
m_rxnPhaseIsReactant(0),
m_rxnPhaseIsProduct(0),
m_ioFlag(0)
{
if (thermo != 0) {
@ -69,36 +56,7 @@ InterfaceKinetics::~InterfaceKinetics()
}
}
InterfaceKinetics::InterfaceKinetics(const InterfaceKinetics& right) :
Kinetics(),
m_redo_rates(false),
m_nirrev(0),
m_nrev(0),
m_surf(0),
m_integrator(0),
m_beta(0),
m_ctrxn(0),
m_ctrxn_BVform(0),
m_ctrxn_ecdf(0),
m_StandardConc(0),
m_deltaG0(0),
m_deltaG(0),
m_ProdStanConcReac(0),
m_logp0(0.0),
m_logc0(0.0),
m_ROP_ok(false),
m_temp(0.0),
m_logtemp(0.0),
m_finalized(false),
m_has_coverage_dependence(false),
m_has_electrochem_rxns(false),
m_has_exchange_current_density_formulation(false),
m_phaseExistsCheck(false),
m_phaseExists(0),
m_phaseIsStable(0),
m_rxnPhaseIsReactant(0),
m_rxnPhaseIsProduct(0),
m_ioFlag(0)
InterfaceKinetics::InterfaceKinetics(const InterfaceKinetics& right)
{
/*
* Call the assignment operator

View file

@ -18,12 +18,7 @@ namespace Cantera
Kinetics::Kinetics() :
m_ii(0),
m_kk(0),
m_perturb(0),
m_reactants(0),
m_products(0),
m_thermo(0),
m_start(0),
m_phaseindex(),
m_surfphase(npos),
m_rxnphase(npos),
m_mindim(4)
@ -32,18 +27,7 @@ Kinetics::Kinetics() :
Kinetics::~Kinetics() {}
Kinetics::Kinetics(const Kinetics& right) :
m_ii(0),
m_kk(0),
m_perturb(0),
m_reactants(0),
m_products(0),
m_thermo(0),
m_start(0),
m_phaseindex(),
m_surfphase(npos),
m_rxnphase(npos),
m_mindim(4)
Kinetics::Kinetics(const Kinetics& right)
{
/*
* Call the assignment operator