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

Function _

python/dolfinx/mesh.py:112–125  ·  view source on GitHub ↗

Create a function to partition a mesh. Args: mode: Ghosting mode to use max_facet_to_cell_links: Maximum number of cells connected to a facet. Equal to 2 for non-branching manifold meshes. ``None`` corresponds to no upper bound on the number of

(mode: GhostMode, max_facet_to_cell_links: int)

Source from the content-addressed store, hash-verified

110
111@create_cell_partitioner.register(GhostMode)
112def _(mode: GhostMode, max_facet_to_cell_links: int) -> Callable:
113 """Create a function to partition a mesh.
114
115 Args:
116 mode: Ghosting mode to use
117 max_facet_to_cell_links: Maximum number of cells connected to a
118 facet. Equal to 2 for non-branching manifold meshes.
119 ``None`` corresponds to no upper bound on the number of
120 possible connections.
121
122 Return:
123 Partitioning function.
124 """
125 return _cpp.mesh.create_cell_partitioner(mode, max_facet_to_cell_links)
126
127
128class Topology:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected