Solaris 10 update

Made sure m_nComponents is never assumed to be larger than m_kk, even
before it is actually calculated.
This commit is contained in:
Harry Moffat 2007-03-20 21:52:29 +00:00
parent 810520f4ac
commit 72212f869a

View file

@ -252,7 +252,10 @@ namespace Cantera {
e->setInitialMixMoles();
// store component indices
for (int m = 0; m < m_mm; m++) {
if (m_nComponents > m_kk) {
m_nComponents = m_kk;
}
for (int m = 0; m < m_nComponents; m++) {
m_component[m] = e->componentIndex(m);
}
for (int k = 0; k < m_kk; k++) {