warp.fem.SpacePartition#
- class warp.fem.SpacePartition(space_topology, geo_partition)[source]#
- 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)Returns number of interior nodes in this partition
Returns number of nodes in this partition
Returns number of nodes in this partition, excluding exterior halo
partition_arg_value(device)partition_node_index(args, space_node_index)Returns the index in the partition of a function space node, or
NULL_NODE_INDEXif it does not existrebuild([device, temporary_store])Rebuild the space partition indices
Return the global function space indices for nodes in this partition
Attributes
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]#
Returns 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]#
Returns 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)