find_XML is no longer in the Cantera kernel API.

this fixes the problem, replacing it with calls to get_XML_Node().
This commit is contained in:
Harry Moffat 2003-08-21 17:39:33 +00:00
parent 10f64c1650
commit 5f749dd0f8
2 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1 @@
Makefile

View file

@ -727,7 +727,14 @@ extern "C" {
Kinetics& kin = *k;
XML_Node *x, *r=0;
if (root) r = &root->root();
x = find_XML(f2string(src, lensrc), r, f2string(id,lenid), "", "phase");
string srcS = f2string(src, lensrc);
string idS = f2string(id, lenid);
if (srcS != "") {
x = get_XML_Node(srcS, r);
} else {
x = get_XML_Node(idS, r);
}
// x = find_XML(f2string(src, lensrc), r, f2string(id,lenid), "", "phase");
if (!x) return false;
importPhase(*x, t);
kin.addPhase(*t);