diff --git a/include/cantera/numerics/Func1.h b/include/cantera/numerics/Func1.h index b5734981d..daeed0cfa 100644 --- a/include/cantera/numerics/Func1.h +++ b/include/cantera/numerics/Func1.h @@ -819,7 +819,7 @@ protected: class Poly1 : public Func1 { public: - Poly1(size_t n, doublereal* c) : + Poly1(size_t n, const double* c) : Func1() { m_cpoly.resize(n+1); std::copy(c, c+m_cpoly.size(), m_cpoly.begin()); @@ -870,8 +870,8 @@ protected: class Fourier1 : public Func1 { public: - Fourier1(size_t n, doublereal omega, doublereal a0, - doublereal* a, doublereal* b) : + Fourier1(size_t n, double omega, double a0, + const double* a, const double* b) : Func1() { m_omega = omega; m_a0_2 = 0.5*a0; @@ -930,7 +930,7 @@ protected: class Arrhenius1 : public Func1 { public: - Arrhenius1(size_t n, doublereal* c) : + Arrhenius1(size_t n, const double* c) : Func1() { m_A.resize(n); m_b.resize(n); diff --git a/include/cantera/oneD/Sim1D.h b/include/cantera/oneD/Sim1D.h index 7e7a7722b..127b07ec8 100644 --- a/include/cantera/oneD/Sim1D.h +++ b/include/cantera/oneD/Sim1D.h @@ -112,7 +112,7 @@ public: return m_x.data(); } - void setTimeStep(doublereal stepsize, size_t n, integer* tsteps); + void setTimeStep(double stepsize, size_t n, const int* tsteps); void solve(int loglevel = 0, bool refine_grid = true); diff --git a/include/cantera/zeroD/FlowDevice.h b/include/cantera/zeroD/FlowDevice.h index 81d340470..f6ab94bbc 100644 --- a/include/cantera/zeroD/FlowDevice.h +++ b/include/cantera/zeroD/FlowDevice.h @@ -81,7 +81,7 @@ public: //! set parameters. Generic function used only in the Matlab interface. From //! Python or C++, device-specific functions like Valve::setPressureCoeff //! should be used instead. - virtual void setParameters(int n, doublereal* coeffs) { + virtual void setParameters(int n, const double* coeffs) { m_coeffs.resize(n); std::copy(coeffs, coeffs + n, m_coeffs.begin()); } diff --git a/src/oneD/Sim1D.cpp b/src/oneD/Sim1D.cpp index c1ea19a01..c35d79526 100644 --- a/src/oneD/Sim1D.cpp +++ b/src/oneD/Sim1D.cpp @@ -201,7 +201,7 @@ void Sim1D::finalize() } } -void Sim1D::setTimeStep(doublereal stepsize, size_t n, integer* tsteps) +void Sim1D::setTimeStep(double stepsize, size_t n, const int* tsteps) { m_tstep = stepsize; m_steps.resize(n);