Skip to content

Commit

Permalink
[ck2cti] Fix spurious 'unexpected output' warnings
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
speth committed Jul 30, 2018
1 parent e79cf6f commit fd57936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/ct2ctml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 << "',";
}
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit fd57936

Please sign in to comment.