MCPcopy Create free account
hub / github.com/FEniCS/dolfinx / __del__

Method __del__

python/dolfinx/fem/petsc.py:1355–1360  ·  view source on GitHub ↗

Destroy PETSc objects created internally.

(self)

Source from the content-addressed store, hash-verified

1353 return self.u
1354
1355 def __del__(self):
1356 """Destroy PETSc objects created internally."""
1357 for obj in filter(
1358 lambda obj: obj is not None, (self._snes, self._A, self._b, self._x, self._P_mat)
1359 ):
1360 obj.destroy()
1361
1362 @property
1363 def F(self) -> Form | Sequence[Form]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected