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:
parent
10f64c1650
commit
5f749dd0f8
2 changed files with 9 additions and 1 deletions
1
Cantera/fortran/src/.cvsignore
Normal file
1
Cantera/fortran/src/.cvsignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
Makefile
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue