From ec1d7d73826f7189877fd1d03069c5e23e1a7cf0 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 14 Apr 2015 15:59:18 -0400 Subject: [PATCH] Fix compilier warnings about unused variables --- include/cantera/thermo/MaskellSolidSolnPhase.h | 8 -------- src/kinetics/ElectrodeKinetics.cpp | 6 ------ src/kinetics/InterfaceKinetics.cpp | 5 ----- src/thermo/MaskellSolidSolnPhase.cpp | 2 -- src/thermo/RedlichKisterVPSSTP.cpp | 1 - 5 files changed, 22 deletions(-) diff --git a/include/cantera/thermo/MaskellSolidSolnPhase.h b/include/cantera/thermo/MaskellSolidSolnPhase.h index ce9d3cfd1..dbc2770ab 100644 --- a/include/cantera/thermo/MaskellSolidSolnPhase.h +++ b/include/cantera/thermo/MaskellSolidSolnPhase.h @@ -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 diff --git a/src/kinetics/ElectrodeKinetics.cpp b/src/kinetics/ElectrodeKinetics.cpp index 6af6b7439..609ea8144 100644 --- a/src/kinetics/ElectrodeKinetics.cpp +++ b/src/kinetics/ElectrodeKinetics.cpp @@ -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& 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); diff --git a/src/kinetics/InterfaceKinetics.cpp b/src/kinetics/InterfaceKinetics.cpp index 84fca01c1..949dc5a15 100644 --- a/src/kinetics/InterfaceKinetics.cpp +++ b/src/kinetics/InterfaceKinetics.cpp @@ -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