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

Method __init__

python/dolfinx/mesh.py:514–526  ·  view source on GitHub ↗

Initialise an entity map from a C++ `EntityMap` object. Note: `EntityMap` objects should not usually be created using this initializer directly. Args: entity_map: A C++ `EntityMap` object.

(self, entity_map)

Source from the content-addressed store, hash-verified

512 """Bidirectional map between entities in two topologies."""
513
514 def __init__(self, entity_map):
515 """Initialise an entity map from a C++ `EntityMap` object.
516
517 Note:
518 `EntityMap` objects should not usually be created using this
519 initializer directly.
520
521 Args:
522 entity_map: A C++ `EntityMap` object.
523 """
524 self._cpp_object = entity_map
525 self._topology = Topology(self._cpp_object.topology)
526 self._sub_topology = Topology(self._cpp_object.sub_topology)
527
528 def sub_topology_to_topology(self, entities, inverse):
529 """Map entities between the sub-topology and the parent topology.

Callers

nothing calls this directly

Calls 1

TopologyClass · 0.70

Tested by

no test coverage detected