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:
parent
810520f4ac
commit
72212f869a
1 changed files with 4 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue