Destroy internally held PETSc objects.
(self)
| 877 | self.solver.getPC().setFieldSplitIS(*fieldsplit_IS) |
| 878 | |
| 879 | def __del__(self): |
| 880 | """Destroy internally held PETSc objects.""" |
| 881 | for obj in filter( |
| 882 | lambda obj: obj is not None, (self._solver, self._A, self._b, self._x, self._P_mat) |
| 883 | ): |
| 884 | obj.destroy() |
| 885 | |
| 886 | def solve(self) -> _Function | Sequence[_Function]: |
| 887 | """Solve the problem. |
nothing calls this directly
no outgoing calls
no test coverage detected