warp.fem.SpacePartition#
- class warp.fem.SpacePartition(space_topology, geo_partition)[source]#
Partition of a function space over a geometry partition.
A space partition associates nodes of a function space topology with a geometry partition, enabling distributed computation over subdomains.
- Parameters:
space_topology (SpaceTopology)
geo_partition (GeometryPartition)
- __init__(space_topology, geo_partition)[source]#
- Parameters:
space_topology (SpaceTopology)
geo_partition (GeometryPartition)
Methods
__init__(space_topology, geo_partition)fill_partition_arg(arg, device)Fill partition arguments for device functions.
Return number of interior nodes in this partition.
Return number of nodes in this partition.
Return number of nodes in this partition, excluding exterior halo.
partition_arg_value(device)partition_node_index(args, space_node_index)Return the index in the partition of a function space node, or
NULL_NODE_INDEXif it does not exist.rebuild([device, temporary_store])Rebuild the space partition indices
Return the global function space indices for nodes in this partition
Attributes
Name of the space partition.
Topology of the function space being partitioned.
Partition of the geometry controlling how to partition the space.
- space_topology: SpaceTopology#
Topology of the function space being partitioned.
- geo_partition: GeometryPartition#
Partition of the geometry controlling how to partition the space.
- owned_node_count()[source]#
Return number of nodes in this partition, excluding exterior halo.
- Return type:
- space_node_indices()[source]#
Return the global function space indices for nodes in this partition
- Return type:
- rebuild(device=None, temporary_store=None)[source]#
Rebuild the space partition indices
- Parameters:
device (Optional)
temporary_store (TemporaryStore | None)
- static partition_node_index(args, space_node_index)[source]#
Return the index in the partition of a function space node, or
NULL_NODE_INDEXif it does not exist.- Parameters:
args (PartitionArg)
space_node_index (int)