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§
sourcetype SubDomainIndex
type SubDomainIndex
This should always be identical to Domain::SubDomainIndex.
sourcetype VoxelIndex
type VoxelIndex
This should always be identical to Domain::VoxelIndex.
Required Methods§
sourcefn create_subdomains(
&self,
n_subdomains: NonZeroUsize,
) -> Result<impl IntoIterator<Item = (Self::SubDomainIndex, S, Vec<Self::VoxelIndex>)>, DecomposeError>
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.