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:
__init__(space_topology, geo_partition)[source]#
Parameters:

Methods

__init__(space_topology, geo_partition)

fill_partition_arg(arg, device)

Fill partition arguments for device functions.

interior_node_count()

Return number of interior nodes in this partition.

node_count()

Return number of nodes in this partition.

owned_node_count()

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_INDEX if it does not exist.

rebuild([device, temporary_store])

Rebuild the space partition indices

space_node_indices()

Return the global function space indices for nodes in this partition

Attributes

name

Name of the space partition.

space_topology

Topology of the function space being partitioned.

geo_partition

Partition of the geometry controlling how to partition the space.

class PartitionArg[source]#

Structure containing arguments to be passed to device functions.

space_topology: SpaceTopology#

Topology of the function space being partitioned.

geo_partition: GeometryPartition#

Partition of the geometry controlling how to partition the space.

node_count()[source]#

Return number of nodes in this partition.

owned_node_count()[source]#

Return number of nodes in this partition, excluding exterior halo.

Return type:

int

interior_node_count()[source]#

Return number of interior nodes in this partition.

Return type:

int

space_node_indices()[source]#

Return the global function space indices for nodes in this partition

Return type:

array

rebuild(device=None, temporary_store=None)[source]#

Rebuild the space partition indices

Parameters:
partition_arg_value(device)[source]#
fill_partition_arg(arg, device)[source]#

Fill partition arguments for device functions.

static partition_node_index(args, space_node_index)[source]#

Return the index in the partition of a function space node, or NULL_NODE_INDEX if it does not exist.

Parameters:
property name: str[source]#

Name of the space partition.