mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
UPgraded one error condition statement
This commit is contained in:
parent
ab65fb1607
commit
f65ca77625
@ -217,8 +217,9 @@ namespace ctml {
|
||||
*/
|
||||
doublereal getFloat(XML_Node& parent, string name, string type) {
|
||||
if (!parent.hasChild(name))
|
||||
throw CanteraError("getFloat",
|
||||
"no child element named "+name);
|
||||
throw CanteraError("getFloat (called from XML Node \"" +
|
||||
parent.name() + "\"): ",
|
||||
"no child XML element named " + name);
|
||||
XML_Node& node = parent.child(name);
|
||||
doublereal x, x0, x1, fctr = 1.0;
|
||||
string units, vmin, vmax;
|
||||
|
Loading…
Reference in New Issue
Block a user