FEM: Backward compatibility for post pipeline and multiple fixes

This commit is contained in:
Stefan Tröger
2024-12-22 15:45:17 +01:00
committed by Benjamin Nauck
parent 53a7e5ab34
commit c8a4ff0a70
16 changed files with 220 additions and 136 deletions

View File

@@ -150,6 +150,22 @@ PyObject* FemPostPipelinePy::load(PyObject* args)
Py_Return;
}
PyObject* FemPostPipelinePy::getFilter(PyObject* args)
{
if (!PyArg_ParseTuple(args, "")) {
return nullptr;
}
auto filters = getFemPostPipelinePtr()->getFilter();
Py::List sequence;
for (auto filter : filters) {
sequence.append(Py::asObject(filter->getPyObject()));
}
return Py::new_reference_to(sequence);
}
PyObject* FemPostPipelinePy::recomputeChildren(PyObject* args)
{
if (!PyArg_ParseTuple(args, "")) {