diff --git a/include/cantera/cython/wrappers.h b/include/cantera/cython/wrappers.h index 0b50207d32..d6d44ea090 100644 --- a/include/cantera/cython/wrappers.h +++ b/include/cantera/cython/wrappers.h @@ -25,10 +25,12 @@ class PythonLogger : public Cantera::Logger for (size_t i = 0; i < s.size(); i+=N) { PySys_WriteStdout("%s", s.substr(i, N).c_str()); } + std::cout.flush(); } virtual void writeendl() { PySys_WriteStdout("%s", "\n"); + std::cout.flush(); } virtual void error(const std::string& msg) {