Added a get_CTML_Tree() function. It was missing though there

was an entry in ctml.h and IdealGasMix.h used it.
This commit is contained in:
Harry Moffat 2003-08-06 17:14:46 +00:00
parent ce4d299371
commit e8d2044302

View file

@ -370,4 +370,17 @@ namespace ctml {
type = node["type"];
}
void get_CTML_Tree(XML_Node* m_r, string infile) {
string path = findInputFile(infile);
ifstream fin(path.c_str());
if (!fin) {
throw CanteraError("get_CTML_Tree","could not open "
+path+" for reading.");
}
if (!m_r) {
throw CanteraError("get_CTML_Tree",
" Need to malloc XML_Node first");
}
m_r->build(fin);
}
}