Commit 38c627a8 authored by Leon Merten Lohse's avatar Leon Merten Lohse
Browse files

expose SolverXX::u to python

parent e67fb962
Pipeline #242626 failed with stage
in 36 seconds
......@@ -22,7 +22,9 @@ PYBIND11_MODULE(_solver, m) {
&fd::Solver2D::step,
py::arg("F").noconvert(),
py::arg("bl").noconvert(),
py::arg("br").noconvert());
py::arg("br").noconvert())
.def_readonly("u",
&fd::Solver2D::u);
py::class_<fd::Solver2DSym>(m, "Solver2DSym")
.def(py::init<const size_t,
......@@ -38,7 +40,9 @@ PYBIND11_MODULE(_solver, m) {
.def("step",
&fd::Solver2DSym::step,
py::arg("F").noconvert(),
py::arg("br").noconvert());
py::arg("br").noconvert())
.def_readonly("u",
&fd::Solver2DSym::u);
py::class_<fd::Solver3D>(m, "Solver3D")
.def(py::init<const size_t,
......@@ -57,5 +61,7 @@ PYBIND11_MODULE(_solver, m) {
py::arg("bxl").noconvert(),
py::arg("bxr").noconvert(),
py::arg("byl").noconvert(),
py::arg("byr").noconvert());
py::arg("byr").noconvert())
.def_readonly("u",
&fd::Solver3D::u);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment