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:
parent
44d17bd4ae
commit
a278779178
1 changed files with 9 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue