Revision: 3417
Author:
yar...@gmail.com
Date: Sat Feb 28 00:24:29 2015 UTC
Log: [Cython] Fix treatment of writelogendl()
Both writelog and writelogendl should be passed through PySys_WriteStdout to
ensure that they are printed in the correct order. Problems with this were
identified in the 1D solver log when using Python 3.
https://code.google.com/p/cantera/source/detail?r=3417
Modified:
/cantera/trunk/include/cantera/cython/wrappers.h
=======================================
--- /cantera/trunk/include/cantera/cython/wrappers.h Mon Dec 16 23:21:52
2013 UTC
+++ /cantera/trunk/include/cantera/cython/wrappers.h Sat Feb 28 00:24:29
2015 UTC
@@ -26,6 +26,10 @@
PySys_WriteStdout("%s", s.substr(i, N).c_str());
}
}
+
+ virtual void writeendl() {
+ PySys_WriteStdout("%s", "\n");
+ }
virtual void error(const std::string& msg) {
std::string err = "raise Exception('''"+msg+"''')";