From fd57936b18a9bcebcffbe25316b23fe9123da18f Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 23 Jul 2018 23:20:51 -0400 Subject: [PATCH] [ck2cti] Fix spurious 'unexpected output' warnings When calling ck2cti via the C++ wrapper function, the output of the 'convertMech' function (usually an empty list) would be printed. Fixes a bug introduced in db90a7c. --- src/base/ct2ctml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/ct2ctml.cpp b/src/base/ct2ctml.cpp index ce6bdff89..4aa051456 100644 --- a/src/base/ct2ctml.cpp +++ b/src/base/ct2ctml.cpp @@ -200,7 +200,7 @@ void ck2cti(const std::string& in_file, const std::string& thermo_file, " except ImportError:\n" << " print('sys.path: ' + repr(sys.path))\n" << " raise\n" - " ck2cti.convertMech(r'" << in_file << "',"; + " _ = ck2cti.convertMech(r'" << in_file << "',"; if (thermo_file != "" && thermo_file != "-") { pyin << " thermoFile=r'" << thermo_file << "',"; } @@ -250,7 +250,7 @@ void ck2cti(const std::string& in_file, const std::string& thermo_file, if (python_output.size() > 0) { // Warn if there was any output from the conversion process stringstream message; - message << "Warning: Unexpected output from CTI converter\n"; + message << "Warning: Unexpected output from ck2cti\n"; message << "-------------- start of converter log --------------\n"; message << python_output << std::endl; message << "--------------- end of converter log ---------------\n";