Changed the logic when determining what SpeciesThermo manager to malloc.
It was wrong for the water standard state in one case.
This commit is contained in:
parent
103fd934a1
commit
12e553f234
1 changed files with 8 additions and 0 deletions
|
|
@ -67,6 +67,14 @@ namespace Cantera {
|
|||
size_t ns = spDataNodeList.size();
|
||||
for (size_t n = 0; n < ns; n++) {
|
||||
XML_Node* spNode = spDataNodeList[n];
|
||||
if (spNode->hasChild("standardState")) {
|
||||
const XML_Node& ss = spNode->child("standardState");
|
||||
string mname = ss["model"];
|
||||
if (mname == "water" || mname == "waterIAPWS") {
|
||||
has_other = 1;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (spNode->hasChild("thermo")) {
|
||||
const XML_Node& th = spNode->child("thermo");
|
||||
if (th.hasChild("NASA")) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue