Fix compilier warnings about unused variables

This commit is contained in:
Ray Speth 2015-04-14 15:59:18 -04:00
parent 55ad11a565
commit ec1d7d7382
5 changed files with 0 additions and 22 deletions

View file

@ -273,14 +273,6 @@ public:
//@}
private:
/**
* Value of the reference pressure for all species in this phase.
* The T dependent polynomials are evaluated at the reference
* pressure. Note, because this is a single value, all species
* are required to have the same reference pressure.
*/
doublereal m_Pref;
/**
* m_Pcurrent = The current pressure
* Since the density isn't a function of pressure, but only of the

View file

@ -526,11 +526,9 @@ double ElectrodeKinetics::calcForwardROP_BV(size_t irxn, size_t iBeta, double io
{
double ropf;
doublereal rt = GasConstant * thermo(0).temperature();
doublereal rrt = 1.0/rt;
//
// Calculate gather the exchange current reaction rate constant (where does n_s appear?)
//
double iorc = m_rfn[irxn] * m_perturb[irxn];
doublereal beta = m_beta[iBeta];
#ifdef DEBUG_MODE
@ -829,10 +827,6 @@ getExchangeCurrentDensityFormulation(size_t irxn,
const std::vector<doublereal>& kinSpeciesOrders = ro_fwd->kinSpeciesOrders_;
for (size_t j = 0; j < kinSpeciesIDs.size(); j++) {
size_t ks = kinSpeciesIDs[j];
thermo_t& th = speciesPhase(ks);
size_t n = speciesPhaseIndex(ks);
size_t klocal = ks - m_start[n];
double mfS = th.moleFraction(klocal);
double oo = kinSpeciesOrders[j];
tmp *= pow((m_actConc[ks]/m_StandardConc[ks]), oo);

View file

@ -516,9 +516,6 @@ void InterfaceKinetics::updateROP()
// get updated activities (rates updated below)
_update_rates_C();
double TT = m_surf->temperature();
double rtdf = GasConstant * TT / Faraday;
if (m_ROP_ok) {
return;
}
@ -1251,7 +1248,6 @@ void InterfaceKinetics::determineFwdOrdersBV(ReactionData& rdata, std::vector<do
// forward and reverse beta values
double betaf = rdata.beta;
double betar = 1.0 - betaf;
// Loop over the reactants doing away with the BV terms.
// This should leave the reactant terms only, even if they are non-mass action.
@ -1290,7 +1286,6 @@ void InterfaceKinetics::determineFwdOrdersBV(ElectrochemicalReaction& r, std::ve
// forward and reverse beta values
double betaf = r.beta;
double betar = 1.0 - betaf;
// Loop over the reactants doing away with the BV terms.
// This should leave the reactant terms only, even if they are non-mass action.

View file

@ -20,7 +20,6 @@ namespace Cantera
{
MaskellSolidSolnPhase::MaskellSolidSolnPhase() :
m_Pref(OneAtm),
m_Pcurrent(OneAtm),
m_h0_RT(2),
m_cp0_R(2),
@ -33,7 +32,6 @@ MaskellSolidSolnPhase::MaskellSolidSolnPhase() :
}
MaskellSolidSolnPhase::MaskellSolidSolnPhase(const MaskellSolidSolnPhase& b) :
m_Pref(OneAtm),
m_Pcurrent(OneAtm),
m_h0_RT(2),
m_cp0_R(2),

View file

@ -338,7 +338,6 @@ void RedlichKisterVPSSTP::initThermoXML(XML_Node& phaseNode, const std::string&
* Go get all of the coefficients and factors in the
* activityCoefficients XML block
*/
XML_Node* acNodePtr = 0;
if (thermoNode.hasChild("activityCoefficients")) {
XML_Node& acNode = thermoNode.child("activityCoefficients");
mString = acNode.attrib("model");