pub trait DomainCreateSubDomains<S> {
    type SubDomainIndex;
    type VoxelIndex;

    // Required method
    fn create_subdomains(
        &self,
        n_subdomains: NonZeroUsize,
    ) -> Result<impl IntoIterator<Item = (Self::SubDomainIndex, S, Vec<Self::VoxelIndex>)>, DecomposeError>;
}
Expand description

Generate SubDomains from an existing Domain

Required Associated Types§

source

type SubDomainIndex

This should always be identical to Domain::SubDomainIndex.

source

type VoxelIndex

This should always be identical to Domain::VoxelIndex.

Required Methods§

source

fn create_subdomains( &self, n_subdomains: NonZeroUsize, ) -> Result<impl IntoIterator<Item = (Self::SubDomainIndex, S, Vec<Self::VoxelIndex>)>, DecomposeError>

Generates at most n_subdomains. This function can also return a lower amount of subdomains but never less than 1.

Object Safety§

This trait is not object safe.

Implementors§