From e160e0175423a08707a0556c678f8d0b505f9221 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Fri, 1 Aug 2003 20:50:23 +0000 Subject: [PATCH] Added one more routine, needed to get at private data --- Cantera/src/State.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Cantera/src/State.h b/Cantera/src/State.h index d41eb814f..c225bef92 100755 --- a/Cantera/src/State.h +++ b/Cantera/src/State.h @@ -199,8 +199,18 @@ namespace Cantera { /// set the concentrations to the specified values void setConcentrations(const doublereal* c); + /** + * Returns a pointer to the start of the massFraction array + */ const doublereal* massFractions() const { return m_y.begin(); } + /** + * Returns a pointer to the start of the moleFraction/MW array. + * This array is the array of mole fractions, each divided by + * the mean molecular weight. + */ + const doublereal* moleFractdivMMW() const { return m_ym.begin();} + bool ready() const { return (m_kk > 0); }