From 1b1703cc569514e58e5a00c1494d3f207bec9b15 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 18 Jul 2014 15:14:07 +0000 Subject: [PATCH] [Reactor] Remove unused variable ReactorBase::m_init --- include/cantera/zeroD/ReactorBase.h | 1 - src/zeroD/ConstPressureReactor.cpp | 1 - src/zeroD/FlowReactor.cpp | 2 -- src/zeroD/IdealGasConstPressureReactor.cpp | 1 - src/zeroD/IdealGasReactor.cpp | 1 - src/zeroD/Reactor.cpp | 2 -- src/zeroD/ReactorBase.cpp | 1 - 7 files changed, 9 deletions(-) diff --git a/include/cantera/zeroD/ReactorBase.h b/include/cantera/zeroD/ReactorBase.h index 0d19460d9..5f529b42c 100644 --- a/include/cantera/zeroD/ReactorBase.h +++ b/include/cantera/zeroD/ReactorBase.h @@ -210,7 +210,6 @@ protected: thermo_t* m_thermo; doublereal m_vol; - bool m_init; doublereal m_enthalpy; doublereal m_intEnergy; doublereal m_pressure; diff --git a/src/zeroD/ConstPressureReactor.cpp b/src/zeroD/ConstPressureReactor.cpp index 142ed0a81..7810957a5 100644 --- a/src/zeroD/ConstPressureReactor.cpp +++ b/src/zeroD/ConstPressureReactor.cpp @@ -17,7 +17,6 @@ ConstPressureReactor::ConstPressureReactor() : Reactor() {} void ConstPressureReactor::getInitialConditions(double t0, size_t leny, double* y) { - m_init = true; if (m_thermo == 0) { throw CanteraError("getInitialConditions", "Error: reactor is empty."); diff --git a/src/zeroD/FlowReactor.cpp b/src/zeroD/FlowReactor.cpp index 9e5ccdacc..b17ff75ed 100644 --- a/src/zeroD/FlowReactor.cpp +++ b/src/zeroD/FlowReactor.cpp @@ -21,7 +21,6 @@ FlowReactor::FlowReactor() : void FlowReactor::getInitialConditions(double t0, size_t leny, double* y) { - m_init = true; if (m_thermo == 0) { writelog("Error: reactor is empty.\n"); return; @@ -40,7 +39,6 @@ void FlowReactor::initialize(doublereal t0) { m_thermo->restoreState(m_state); m_nv = m_nsp + 2; - m_init = true; } void FlowReactor::updateState(doublereal* y) diff --git a/src/zeroD/IdealGasConstPressureReactor.cpp b/src/zeroD/IdealGasConstPressureReactor.cpp index ee671af2c..413fad98c 100644 --- a/src/zeroD/IdealGasConstPressureReactor.cpp +++ b/src/zeroD/IdealGasConstPressureReactor.cpp @@ -28,7 +28,6 @@ void IdealGasConstPressureReactor::setThermoMgr(ThermoPhase& thermo) void IdealGasConstPressureReactor::getInitialConditions(double t0, size_t leny, double* y) { - m_init = true; if (m_thermo == 0) { throw CanteraError("getInitialConditions", "Error: reactor is empty."); diff --git a/src/zeroD/IdealGasReactor.cpp b/src/zeroD/IdealGasReactor.cpp index 9ee21021b..3ba6e821f 100644 --- a/src/zeroD/IdealGasReactor.cpp +++ b/src/zeroD/IdealGasReactor.cpp @@ -27,7 +27,6 @@ void IdealGasReactor::setThermoMgr(ThermoPhase& thermo) void IdealGasReactor::getInitialConditions(double t0, size_t leny, double* y) { - m_init = true; if (m_thermo == 0) { cout << "Error: reactor is empty." << endl; return; diff --git a/src/zeroD/Reactor.cpp b/src/zeroD/Reactor.cpp index 20939046b..df1aa11c3 100644 --- a/src/zeroD/Reactor.cpp +++ b/src/zeroD/Reactor.cpp @@ -28,7 +28,6 @@ Reactor::Reactor() : ReactorBase(), void Reactor::getInitialConditions(double t0, size_t leny, double* y) { - m_init = true; if (m_thermo == 0) { cout << "Error: reactor is empty." << endl; return; @@ -98,7 +97,6 @@ void Reactor::initialize(doublereal t0) } m_work.resize(maxnt); std::sort(m_pnum.begin(), m_pnum.end()); - m_init = true; } size_t Reactor::nSensParams() diff --git a/src/zeroD/ReactorBase.cpp b/src/zeroD/ReactorBase.cpp index 5d2cef07f..48b36427e 100644 --- a/src/zeroD/ReactorBase.cpp +++ b/src/zeroD/ReactorBase.cpp @@ -15,7 +15,6 @@ namespace Cantera ReactorBase::ReactorBase(const string& name) : m_nsp(0), m_thermo(0), m_vol(1.0), - m_init(false), m_enthalpy(0.0), m_intEnergy(0.0), m_pressure(0.0),