Trait SortCells
pub trait SortCells<C> {
type VoxelIndex;
// Required method
fn get_voxel_index_of(
&self,
cell: &C,
) -> Result<Self::VoxelIndex, BoundaryError>;
}
Expand description
Assign an VoxelIndex to a given cell.
This trait is used by the Domain and SubDomain trait to assign a Domain::SubDomainIndex and SubDomain::VoxelIndex respectively.
§SubDomain
This trait is supposed to return the correct voxel index of the cell even if this index is inside another SubDomain. This restriction might be lifted in the future but is still required now.
Required Associated Types§
type VoxelIndex
type VoxelIndex
An index which determines to which next smaller unit the cell should be assigned.
Required Methods§
fn get_voxel_index_of(
&self,
cell: &C,
) -> Result<Self::VoxelIndex, BoundaryError>
fn get_voxel_index_of( &self, cell: &C, ) -> Result<Self::VoxelIndex, BoundaryError>
If given a cell, we can sort this cell into the corresponding sub unit.