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

Method __del__

python/dolfinx/la/__init__.py:72–75  ·  view source on GitHub ↗

Delete the PETSc vector if it was created.

(self)

Source from the content-addressed store, hash-verified

70 self._petsc_x = None
71
72 def __del__(self):
73 """Delete the PETSc vector if it was created."""
74 if self._petsc_x is not None:
75 self._petsc_x.destroy()
76
77 @property
78 def index_map(self) -> IndexMap:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected