Skip to content

Commit 1097860

Browse files
cgcgcgPierreMarchand20
authored andcommitted
1 parent 2d22db3 commit 1097860

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/htool/solver/solver.hpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
#include "htool/solvers/ddm.hpp"
55
#include <pybind11/stl.h>
6+
#include <pybind11/iostream.h>
67
#include <string>
78

89
namespace py = pybind11;
@@ -48,7 +49,10 @@ void declare_DDM(py::module &m, const std::string &className) {
4849
// LCOV_EXCL_STOP
4950
}
5051

51-
self.solve(b.data(), x.mutable_data(), mu);
52+
{
53+
py::scoped_ostream_redirect stream(std::cout, py::module_::import("sys").attr("stdout"));
54+
self.solve(b.data(), x.mutable_data(), mu);
55+
}
5256
},
5357
py::arg("x").noconvert(true),
5458
py::arg("b"),

0 commit comments

Comments
 (0)