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:
parent
ce4d299371
commit
e8d2044302
1 changed files with 13 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue