Fixed const-ness of PecosTransport virtual functions
These now match the function signatures in the base class.
This commit is contained in:
parent
46a8b3052f
commit
6b8986d0d0
2 changed files with 9 additions and 7 deletions
|
|
@ -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
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue