Fixed an error that affected the calculation of transport properties

for mechanisms with all NASA9 species. The max and min temperatures
weren't being computed, which caused NaN's to appear during the
transport property data fitting procedure.
This commit is contained in:
Harry Moffat 2007-10-06 02:24:13 +00:00
parent 44d17bd4ae
commit a278779178

View file

@ -180,6 +180,15 @@ namespace Cantera {
* Now, simply assign the position
*/
m_sp[index] = stit_ptr;
/*
* Calculate max and min
*/
double minTemp = stit_ptr->minTemp();
double maxTemp = stit_ptr->maxTemp();
m_tlow_max = max(minTemp, m_tlow_max);
m_thigh_min = min(maxTemp, m_thigh_min);
}
/**