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

Method dofmap

python/dolfinx/mesh.py:321–331  ·  view source on GitHub ↗

Dofmap for the geometry (deprecated, use ``dofmaps[0]``). Shape is ``(num_cells, dofs_per_cell)``.

(self)

Source from the content-addressed store, hash-verified

319
320 @property
321 def dofmap(self) -> npt.NDArray[np.int32]:
322 """Dofmap for the geometry (deprecated, use ``dofmaps[0]``).
323
324 Shape is ``(num_cells, dofs_per_cell)``.
325 """
326 warnings.warn(
327 "dofmap is deprecated. Use dofmaps[0] instead.",
328 DeprecationWarning,
329 stacklevel=2,
330 )
331 return self._cpp_object.dofmaps[0]
332
333 def index_map(self) -> _IndexMap:
334 """Index map for the geometry points (nodes) distribution."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected