[Reactor] Remove unused variable ReactorBase::m_init
This commit is contained in:
parent
ad3ac0a1ad
commit
1b1703cc56
7 changed files with 0 additions and 9 deletions
|
|
@ -210,7 +210,6 @@ protected:
|
|||
|
||||
thermo_t* m_thermo;
|
||||
doublereal m_vol;
|
||||
bool m_init;
|
||||
doublereal m_enthalpy;
|
||||
doublereal m_intEnergy;
|
||||
doublereal m_pressure;
|
||||
|
|
|
|||
|
|
@ -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.");
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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.");
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue