diff --git a/include/cantera/kinetics/RxnRates.h b/include/cantera/kinetics/RxnRates.h index abe7ec8ed..1869a239c 100644 --- a/include/cantera/kinetics/RxnRates.h +++ b/include/cantera/kinetics/RxnRates.h @@ -452,15 +452,15 @@ public: //! Constructor directly from coefficient array /* - * @param Pmin Minimum pressure [Pa] - * @param Pmax Maximum pressure [Pa] * @param Tmin Minimum temperature [K] * @param Tmax Maximum temperature [K] + * @param Pmin Minimum pressure [Pa] + * @param Pmax Maximum pressure [Pa] * @param coeffs Coefficient array dimensioned `nT` by `nP` where `nT` and * `nP` are the number of temperatures and pressures used in the fit, * respectively. */ - ChebyshevRate(double Pmin, double Pmax, double Tmin, double Tmax, + ChebyshevRate(double Tmin, double Tmax, double Pmin, double Pmax, const Array2D& coeffs); //! Update concentration-dependent parts of the rate coefficient. diff --git a/src/kinetics/Reaction.cpp b/src/kinetics/Reaction.cpp index 997a260f5..8abed3b40 100644 --- a/src/kinetics/Reaction.cpp +++ b/src/kinetics/Reaction.cpp @@ -474,10 +474,10 @@ void setupChebyshevReaction(ChebyshevReaction& R, const XML_Node& rxn_node) coeffs(t,p) = coeffs_flat[nP*t + p]; } } - R.rate = ChebyshevRate(getFloat(rc, "Pmin", "toSI"), - getFloat(rc, "Pmax", "toSI"), - getFloat(rc, "Tmin", "toSI"), + R.rate = ChebyshevRate(getFloat(rc, "Tmin", "toSI"), getFloat(rc, "Tmax", "toSI"), + getFloat(rc, "Pmin", "toSI"), + getFloat(rc, "Pmax", "toSI"), coeffs); setupReaction(R, rxn_node); } diff --git a/src/kinetics/RxnRates.cpp b/src/kinetics/RxnRates.cpp index 81f7b4cf9..aa03fd58f 100644 --- a/src/kinetics/RxnRates.cpp +++ b/src/kinetics/RxnRates.cpp @@ -265,7 +265,7 @@ ChebyshevRate::ChebyshevRate(const ReactionData& rdata) PrDen_ = 1.0 / (logPmax - logPmin); } -ChebyshevRate::ChebyshevRate(double Pmin, double Pmax, double Tmin, double Tmax, +ChebyshevRate::ChebyshevRate(double Tmin, double Tmax, double Pmin, double Pmax, const Array2D& coeffs) : Tmin_(Tmin) , Tmax_(Tmax) diff --git a/test/kinetics/kineticsFromScratch.cpp b/test/kinetics/kineticsFromScratch.cpp index 76bbc0754..e473ea234 100644 --- a/test/kinetics/kineticsFromScratch.cpp +++ b/test/kinetics/kineticsFromScratch.cpp @@ -195,7 +195,7 @@ TEST_F(KineticsFromScratch, add_chebyshev_reaction) coeffs(2,1) = 2.6889e-01; coeffs(2,2) = 9.4806e-02; coeffs(2,3) = -7.6385e-03; - ChebyshevRate rate(1000.0, 10000000.0, 290, 3000, coeffs); + ChebyshevRate rate(290, 3000, 1000.0, 10000000.0, coeffs); shared_ptr R(new ChebyshevReaction(reac, prod, rate)); kin.addReaction(R);