warp.fem.make_space_restriction#
- warp.fem.make_space_restriction(
- space=None,
- space_partition=None,
- domain=None,
- space_topology=None,
- device=None,
- temporary_store=None,
Restricts a function space partition to a Domain, i.e. a subset of its elements.
One of space_partition, space_topology, or space must be provided (and will be considered in that order).
- Parameters:
space (FunctionSpace | None) – (deprecated) if neither space_partition nor space_topology are provided, the space defining the topology to restrict
space_partition (SpacePartition | None) – the subset of nodes from the space topology to consider
domain (GeometryDomain | None) – the domain to restrict the space to, defaults to all cells of the space geometry or partition.
space_topology (SpaceTopology | None) – the space topology to be restricted, if space_partition is
None.device – device on which to perform and store computations
temporary_store (Optional[warp.fem.TemporaryStore]) – shared pool from which to allocate temporary arrays
- Return type: