dbirch997 / cantera

Automatically exported from code.google.com/p/cantera
1 stars 0 forks source link

Cython log output needs to be redirected #188

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When using some Python interpreters, e.g. IPython QtConsole, log output from 
Cantera is missing.

To fix this, we need to redirect output printed with writelog() to Python's 
sys.stdout instead of std::cout. This can be done the same way as was done in 
the old Python module, e.g. see src/python/pylogger.h and the init_cantera 
function in src/python/pycantera.cpp.

Original issue reported on code.google.com by yarmond on 20 Nov 2013 at 4:25

GoogleCodeExporter commented 9 years ago
Fixed by r2583.

Original comment by yarmond on 6 Dec 2013 at 11:19