From 9788de98468eea6e02c7e38cac4e91b8c167517b Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Fri, 6 Aug 2004 22:54:39 +0000 Subject: [PATCH] added some more debugging stuff. --- Cantera/src/ct2ctml.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Cantera/src/ct2ctml.cpp b/Cantera/src/ct2ctml.cpp index 9aa37136e..4b1c08d37 100644 --- a/Cantera/src/ct2ctml.cpp +++ b/Cantera/src/ct2ctml.cpp @@ -211,6 +211,9 @@ namespace ctml { // find the input file on the Cantera search path string inname = findInputFile(file); +#ifdef DEBUG_PATHS + cout <<"Found file: " << inname << endl; +#endif if (inname == "") throw CanteraError("get_CTML_tree", "file "+file+" not found"); @@ -229,7 +232,15 @@ namespace ctml { else { ff = inname; } +#ifdef DEBUG_PATHS + cout << "Attempting to parse xml file " << ff << endl; +#endif ifstream fin(ff.c_str()); + if (!fin) { + throw + CanteraError("get_CTML_tree", + "XML file " + ff + " not found"); + } rootPtr->build(fin); fin.close(); }