From 6b8986d0d0117b8a07d1b61162b544c6f75738f5 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 26 Dec 2012 23:56:10 +0000 Subject: [PATCH] Fixed const-ness of PecosTransport virtual functions These now match the function signatures in the base class. --- include/cantera/transport/PecosTransport.h | 8 ++++---- src/transport/PecosTransport.cpp | 8 +++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/include/cantera/transport/PecosTransport.h b/include/cantera/transport/PecosTransport.h index f1e27a22c..53f2199df 100644 --- a/include/cantera/transport/PecosTransport.h +++ b/include/cantera/transport/PecosTransport.h @@ -57,7 +57,7 @@ public: */ virtual doublereal viscosity(); - virtual void getSpeciesViscosities(doublereal* visc) { + virtual void getSpeciesViscosities(doublereal* const visc) { update_T(); updateViscosity_T(); copy(m_visc.begin(), m_visc.end(), visc); @@ -147,10 +147,10 @@ public: * length = ldx * ndim */ virtual void getSpeciesFluxes(size_t ndim, - const doublereal* grad_T, + const doublereal* const grad_T, size_t ldx, - const doublereal* grad_X, - size_t ldf, doublereal* fluxes); + const doublereal* const grad_X, + size_t ldf, doublereal* const fluxes); //! Initialize the transport object /*! diff --git a/src/transport/PecosTransport.cpp b/src/transport/PecosTransport.cpp index 225e2da9b..a2bf9b658 100755 --- a/src/transport/PecosTransport.cpp +++ b/src/transport/PecosTransport.cpp @@ -273,10 +273,12 @@ void PecosTransport::getThermalDiffCoeffs(doublereal* const dt) * */ void PecosTransport::getSpeciesFluxes(size_t ndim, - const doublereal* grad_T, size_t ldx, const doublereal* grad_X, - size_t ldf, doublereal* fluxes) + const doublereal* const grad_T, + size_t ldx, const doublereal* const grad_X, + size_t ldf, doublereal* const fluxes) { - int n=0, k; + size_t n = 0; + int k; update_T(); update_C();