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

Method __init__

python/dolfinx/mesh.py:133–144  ·  view source on GitHub ↗

Initialize a topology from a C++ topology. Args: topology: The C++ topology object Note: Topology objects should usually be constructed with the :func:`dolfinx.cpp.mesh.create_topology` and not this class initializer.

(self, topology: _cpp.mesh.Topology)

Source from the content-addressed store, hash-verified

131 _cpp_object: _cpp.mesh.Topology
132
133 def __init__(self, topology: _cpp.mesh.Topology):
134 """Initialize a topology from a C++ topology.
135
136 Args:
137 topology: The C++ topology object
138
139 Note:
140 Topology objects should usually be constructed with the
141 :func:`dolfinx.cpp.mesh.create_topology` and not this class
142 initializer.
143 """
144 self._cpp_object = topology
145
146 def cell_name(self) -> str:
147 """String representation of the cell-type of the topology."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected